I have already installed .NET 8 SDK preview but it doesn't show up when I create a new project in latest Visual Studio 2022 Version 17.8.0 Preview 2.0.
I also can't find the option Use preview of the .NET SDK
in Manage Preview Feature
I have already installed .NET 8 SDK preview but it doesn't show up when I create a new project in latest Visual Studio 2022 Version 17.8.0 Preview 2.0.
I also can't find the option Use preview of the .NET SDK
in Manage Preview Feature
The existing Blazor templates were all removed and combined to create the new Blazor Web App template in .NET 8, and as a result the older templates will not offer .NET 8 as an option.
Either use the Blazor Web App template or create the old .NET 7 template and manually upgrade the target framework.
I was led here looking for a reason why .NET 8 does not appear in the Framework dropdown when I had the .NET 8 SDK installed. Since .NET 8 is not in preview any longer, the above posts did not work for me. I found that I needed to upgrade my Visual Studio 2022 installation to build 17.8 or higher.
For people who are facing this issue and still did not figure it out: In Visual Studio, when you see all your projects etc. you wont see the global.json file. Go via the File Explorer to your solution folder and look inside of it for the global.json file.
For my case I had to change it from "version":"7.0.201" to "version": "8.0.101". This has helped me to see the .NET 8 in the dropdown in project properties :)
1- go to Tools --> Manage Preview Feature 2- enable Use Preview of the .net Sdk 3- start new project and select .net 8.0 (Preview)
The 0.5.568.12974 version of the Upgrade Assistant has the .NET 8 GA option available.
Visual Studio For Mac 2022
If you right click on your project and see .Net 8.0 (Not Installed) on Target Framework dropdown even if it is installed, here's the solution:
Go to
Tools -> Preferences -> Other -> Preview Features
check "Use the .Net 8 SDK if installed (requires restart)" and then restart VS
© 2022 - 2024 — McMap. All rights reserved.