Reputation: 13467
I recently created a Blazor
project using VS 2022 Preview-Community
. In the beginning of create the project I choose .Net 5
and the project ran correctly. But when I want change the target framework to .Net 6
, I got this error while running:
I have same issue in VS 2019
. How can I change target framework in Blazor
projects?
Thank
Edit 1)
Nuget installed packages (After change target framework to 6):
Upvotes: 2
Views: 1084
Reputation: 273494
After the picture:
.net 6 is still in preview so you have to check "[x] Include prereleases"
You will then see that there are 3 updates, to .net6.0.0-preview.* .
Upvotes: 1