内容目录
In projects using partial classes, such as Razor, Blazor, WPF, etc., the compilation will generate .g.cs
files. However, if there are issues that prevent successful compilation, and examining the source code does not reveal any errors, one can begin outputting the .g.cs
files for inspection.
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
https://stackoverflow.com/questions/71178850/error-the-in-razor-g-cs-file-cant-find-in-vs-cant-find-the-razor-g-cs-file
文章评论