Using .NET 8.0 with VS2022

Boleeman

Member
Joined
Jan 15, 2025
Messages
13
Programming Experience
10+
Just another query: Skydiver you mentioned that you compiled the Csharp distrix with Net 8.0 on a WIndows 10 computer with VSNet 2022.

I am using a VS2022 on WIn10. I have Net 8 installed but it is not showing up in the target framework. I see that you made the csharp distrix version using Net 8.0, but for some reason I can't access Net 8 from my VSNet2022 Community Edition. All I can do is use Net 7.0 and not Net 8.0. Not sure why this has happened?
 

Attachments

  • Net 8 installed.png
    Net 8 installed.png
    63.1 KB · Views: 3
  • Net 8 not showing for target framework.png
    Net 8 not showing for target framework.png
    51.1 KB · Views: 3
Solution
Click Modify button in Visual Studio Installer and check Individual Components tab that .Net 8.0 Runtime is checked.

Both .Net 8.0 (Visual Studio 2022 version 17.8+) and .Net 9.0 (Visual Studio 2022 version 17.12+) is supported in Windows 10 (22H2+)
I started a new thread for this topic.

What version of Visual Studio 2022 do you have?

Anyway, you'll find this amusing. As far as Win10 thinks, I don't have the .NET 8.0 SDK:
1737553035459.png


Note the missing Microsoft .NET SDK 8.0.*
1737553071387.png


1737553166327.png


1737553256430.png
 
Click Modify button in Visual Studio Installer and check Individual Components tab that .Net 8.0 Runtime is checked.

Both .Net 8.0 (Visual Studio 2022 version 17.8+) and .Net 9.0 (Visual Studio 2022 version 17.12+) is supported in Windows 10 (22H2+)
 
Solution
@JohnH to the rescue as usual! Awesome pointer. That's exactly my configuration where I have .NET 8.0 checked:
1737553577401.png
 
I clicked Modify button in Visual Studio Installer but Net 8.0 was still not shown.
In the end I did a 4.5Gb update of VSNet 2022. After that update both Net 8.0 and Net 9.0 Targets were shown in the compiler.

Problem solved. Skydiver's original distrix source also then compiled without any modification. Hooray.
 
Back
Top Bottom