Link to home
Create AccountLog in
Avatar of bgraves
bgravesFlag for United States of America

asked on

Cannot use .Net 8 with Visual Studio 2022

I develop in C# under Visual Studio 2022 Community edition.

I have been using .Net 4.8 and "Windows Application" on Windows 10, 64 bit, 22H2.

Downloaded the .Net 8 SDK thinking I would upgrade a project and try it.

.Net 8 SDK shows as installed under Programs and Features BUT I cannot select anything after .Net 4.8 in Visual Studio.


I have searched and cannot find what I am overlooking, please help!

Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Not tried it myself but VS 2022 ought to work with .net 8

Make certain you have the release version and not a preview version.  https://dotnet.microsoft.com/en-us/download/dotnet/8.0


Have you seen this:

https://sheldonrcohen.medium.com/heres-why-you-might-not-see-net-8-preview-in-visual-studio-2022-9643e1f20477

Avatar of bgraves

ASKER

Yes .Net 8 OUGHT to work with VS2022 BUT ...

Checked both links (thank you) but the download is the same as already installed and not a preview.

The Options idea is for Previews and did not work anyway.


That is why this is so frustrating - should be a 2 second fix !!!!

This is drastic but consider (removing first?) reinstalling VS 2022 

Maybe something is corrupted on your machine.



As I said I have not installed .net 8 so I can't test anything here.



ps. I have occasionally cured weird problems by reinstalling the software that wasn't working as expected.

did you run the visual studio installer and get the update? after installing the dot net 8 sdk? It's a big update. On my System 1769 Packages.

lots of 8.0.3 updUser generated imageates

Avatar of bgraves

ASKER

VS is 17.8.2 and reports as up to date.

I downloaded a fresh installer and all I can get is the 17.8.2.

Maybe the 8.0.3 you mention is the answer BUT I doubt it because I can't use .Net 7.0 either!!!


>>I downloaded a fresh installer and all I can get is the 17.8.2. 


Did you re-install ?  (Sometimes that does cure software problems).

ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer