Change target framework in Blazor WASM project
I recently created a 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):
1 ответ
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.* .