Search code examples
blazor.net-9.0

Why am I getting "The current .NET SDK does not support targeting .NET 9.0. " when I have .Net 9 Preview Installed?


I would like to try the new .NET MAUI Blazor Hybrid and Web App template. I installed the latest .NET 9 Preview but I am getting the below errors when the template is immediately opened / built.

Template

Errors

I have the latest VS installed. 17.11.3

I have .Net 9 Preview 7 Installed on my machine. Why am I getting the errors?

Preview 7


Solution

  • I learned that you can still use VS 2022 with .Net 9 Preview by selecting the below Option. I still can't run the NET MAUI Blazor Hybrid and Web App template in VS 2022 but I can use .Net 9 with my Blazor Web App and use the enhanced Rejoining Server Mechanism which saves time.

    Option