After creating a new blazor component i get this error:
The namespace 'Razor' already contains a definition for 'Template'
Is it a bug with auto generation or something? How can i fix it in blazor? It appears very often and i have no idea why. Blazor is pretty new framework, can somebody defeated this problem? Thank you in advance!
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
...
<RazorLangVersion>3.0</RazorLangVersion>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>
Adding AddRazorSupportForMvc fixes the issue for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With