[英]Visual Studio 2022 build failed - but showing no errors
On error view, Change Show issues generated to "Build Only"在错误视图中,将生成的显示问题更改为“仅构建”
If you have multiple projects under same solution make sure the Target Framework (Right click project -> properties) of each project is feasible for the referencing project.如果您在同一解决方案下有多个项目,请确保每个项目的目标框架(右键单击项目-> 属性)对于引用项目是可行的。 I was trying to refer to a project (v4.8) from v4.6 and encountered this error.我试图从 v4.6 引用一个项目(v4.8)并遇到此错误。
And also try checking the build order of the project (Right click solution -> Project Build Order) and clean and build each projects according to that order.并尝试检查项目的构建顺序(右键单击解决方案 -> 项目构建顺序)并根据该顺序清理和构建每个项目。
Go to location of the project, delete.vs folder and re-build again. Go 到项目的位置,删除.vs 文件夹并重新构建。
If you have Symantec Antivirus running on your machine, it could block MSBuild.exe from Visual Studio resulting in the build failing.如果您的计算机上运行了 Symantec Antivirus,它可能会阻止 Visual Studio 中的 MSBuild.exe,从而导致构建失败。
You may re-install/ reconfigure Symantec to allow MSBuild.exe.您可以重新安装/重新配置 Symantec 以允许 MSBuild.exe。
open your terminal and run using shift +``
key in visual studio.打开您的终端并在 Visual Studio 中使用shift +``
键运行。 Run dotnet run
all errors will be shown on terminal运行dotnet run
所有错误将显示在终端上
Open Visual Studio Installer, click Modify on the version that's not working, select the Individual Components tab, untick Intellicode and click Modify (bottom right).打开 Visual Studio 安装程序,在不起作用的版本上单击修改,select 单个组件选项卡,取消选中 Intellicode,然后单击修改(右下角)。
Once it's finished, go through the same process but tick it this time, restart VS (which you have to do anyway).完成后,go 通过相同的过程但这次勾选它,重新启动 VS(无论如何你都必须这样做)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.