Why .NET 8 preview doesn’t show up in Visual Studio 2022 Version 17.8.0 Preview 2.0
Asked Answered
H

6

14

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.

enter image description here

enter image description here

I also can't find the option Use preview of the .NET SDK in Manage Preview Feature

Hell answered 20/9, 2023 at 1:51 Comment(1)
Tools > Manage Preview Features > tick the checkbox.Astroid
A
10

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.

Amylolysis answered 30/9, 2023 at 22:57 Comment(0)
M
9

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.

Merodach answered 31/1 at 15:57 Comment(1)
Yep this worked fine for me!Onward
S
5

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 :)

Sprout answered 5/2 at 22:23 Comment(2)
After trying everything, this is the only solution that worked from me.Averment
Yeah same for me this is the solution.Lerner
P
2

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)

go to Tools --> Manage Preview Feature

Use Preview of the dotnet

done

Precancel answered 12/11, 2023 at 9:9 Comment(0)
T
1

The 0.5.568.12974 version of the Upgrade Assistant has the .NET 8 GA option available.

enter image description here

This cause the .NET 8 option to show up enter image description here

Trenna answered 1/1 at 23:36 Comment(1)
This was the only suggestion that worked for me.Parkerparkhurst
S
0

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

Sleazy answered 25/7 at 6:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.