Issues and corresponding solutions of dotnet razor
- 1 minutes read - 55 wordsSeperate view dll issues
Put views (cshtml) into the main web project
'RazorTargetAssemblyInfo.cs' could not be found
GenerateAssemblyVersionAttribute is set to true : af file MyProject.RazorTargetAssemblyInfo.cs is generated
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
</PropertyGroup>