简体   繁体   English

Visual Studio 2022 构建失败 - 但未显示任何错误

[英]Visual Studio 2022 build failed - but showing no errors

The only strange thing is a warning on the projects, but without any indication of what it is:唯一奇怪的是对项目的警告,但没有任何迹象表明它是什么:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Any ideas?有任何想法吗?

On error view, Change Show issues generated to "Build Only"在错误视图中,将生成的显示问题更改为“仅构建”

Change Show issues generated更改显示生成的问题

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.

相关问题 Visual Studio 2022 - 代码分析构建错误未失败构建 - Visual Studio 2022 - Code Analysis Build errors not failing build Visual Studio 在构建后显示假错误 - Visual studio showing fake errors after build 在 Visual Studio 2022 中未显示 git 信息 Codelens - Not showing git info Codelens in visual studio 2022 Visual Studio 2013错误列表未显示失败的构建上的错误 - Visual Studio 2013 Error List not showing errors on failed builds Visual Studio 2019 构建错误 - Visual Studio 2019 build errors .NET 核心未显示在 Visual Studio 2022 的目标框架下拉列表中 - .NET Core not showing in target framework dropdown for visual studio 2022 Visual Studio 2022 未在鼠标悬停时显示参数 XML 文档工具提示 - Visual Studio 2022 not showing parameter XML docs tooltips on mouse over (ApplicationSettings)未显示在表单属性上 - Visual Studio 2022 C# - (ApplicationSettings) not showing on form properties - Visual Studio 2022 C# NUKE 构建:找不到合适的 MSBuild 实例 (Visual Studio 2022) - NUKE Build: Could not find a suitable MSBuild instance (Visual Studio 2022) 如何使用 Visual Studio 2022 构建用 C# 编写的应用程序 - How to build an application written in C#, using Visual Studio 2022
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM