'Cannot use .NET 6.0 Framework for ASP.NET with React.js and Redux in Visual Studio

I have .NET 6.0 Runtime selected in individual components, what's weird is I don't have .NET 5.0 Runtime selected.

No .NET 6 option

Have .NET 6 installed



Solution 1:[1]

VS2022 recommends you split front end and back end into different projects (and use .esproj especially),

https://docs.microsoft.com/en-us/visualstudio/javascript/javascript-in-vs-2022?view=vs-2022

Thus, that project template you selected shouldn't apply to .NET 6, or unnecessary problems are there.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lex Li