DooDoo
DooDoo

Reputation: 13467

Change target framework in Blazor WASM project

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:

enter image description here

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

enter image description here

Upvotes: 2

Views: 1084

Answers (1)

Henk Holterman
Henk Holterman

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

Related Questions