如何解决rzc生成退出代码1错误

Son*_*shi 3 asp.net-mvc asp.net-core

当我从 Visual Studio 代码中的团队资源管理器中提取代码时。Rzc 生成退出代码 1 错误发生。我无法构建项目。如何解决此错误?目标框架 .net core 3.1

小智 7

在visual studio中打开项目->检查具有X-红色符号的任何文件的视图文件夹,然后从visual studio中删除该文件。

以前您从文件夹中删除了文件 - 这就是问题所在。

ie, Razor Engine trying to render those files, but the engine could not find the physical location of that file, that is the problem. Always delete the unwanted files using the visual studio or any project editor. That is the best practice. 
Thank you  
Run Code Online (Sandbox Code Playgroud)