- ago
I just created a new Visual Studio project in an existing VS solution. But for some strange reason, I cannot set the .NET framework for it to 8.0. I did select to "Install other frameworks" and I installed the latest x64 version of .NET 8.0, but this particular Visual Studio project still can't find it.

What's weird is I have two other VS projects in this same solution that are configured to use .NET 8.0 successfully. So what's going on?

0
118
Solved
5 Replies

Reply

Bookmark

Sort
Cone8
 ( 2.67% )
- ago
#1
The target frameworks are all .NET Framework versions (e.g., 4.7.2), not .NET Core or .NET 5+. That suggests that when you created the new project, you accidentally selected a .NET Framework project template instead of a .NET 8.0 project template.
1
- ago
#2
The VS project library creation choices are a little confusing. Apparently for WL8, one wants the C# library choice that supports WPF applications. It might be worthwhile to clarify that in the DataSetProvider instructions.

0
Glitch8
 ( 6.11% )
- ago
#3
If your library doesn't require WPF you don't need to select that option. Your mistake was selecting a class library that relies on the .NET Framework (this is the old framework.)

Instead you can select this option:

0
Best Answer
- ago
#4
QUOTE:
If your library doesn't require WPF you don't need to select that option.

Well, I need a way to "trigger" my DataSetProvider so it reads an Excel file created by the Fidelity stock screener after the market closes. I was thinking (but I haven't decided yet) of creating an extension submenu item to do that with, which may require some WPF. But if there's a better way, do suggest it. I suppose I could poll the Download folder for an Excel file.

If I choose a VS project config that supports multiple OSes (Android, Windows, Linux, MacOS, etc.), isn't that going to make my project library bigger?

Thanks in advance for all the help.
0
Glitch8
 ( 6.11% )
- ago
#5
I don't know, but I can't see why you'd want to do that because WL8 is currently Windows only. If you need to interact with the UI choose a WPF library, otherwise the one I highlighted above.
1

Reply

Bookmark

Sort