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!
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.
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).
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