.NET 6 Starts Outputting .g.cs Files

2022年10月13日 1921点热度 0人点赞 0条评论
内容目录

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

痴者工良

高级程序员劝退师

文章评论