visual-studio - Visual Studio 2015 项目构建失败但没有错误

标签 visual-studio visual-studio-2015 build msbuild

我的项目构建全部失败,但没有显示任何错误。我尝试清洁和重建,但没有奏效。

我将 MSBuild 输出详细程度更改为“诊断”,希望它能帮助我识别问题,但现在我陷入了困境。输出如下所示:

1>Project 'ProjectMM.Data.Models' is not up to date. Input file 'C:\Projects\ProjectMM\ProjectMM.Data.Models\ProjectMM.Data.Models.csproj' is modified after output file 'C:\Projects\ProjectMM\ProjectMM.Data.Models\bin\Debug\ProjectMM.Data.Models.pdb'.
All packages are already installed and there is nothing to restore.
1>------ Build started: Project: ProjectMM.Data.Models, Configuration: Debug Any CPU ------
2>Project 'ProjectMM.Data' is not up to date. Input file 'C:\Projects\ProjectMM\ProjectMM.Data\ProjectMM.Data.csproj' is modified after output file 'C:\Projects\ProjectMM\ProjectMM.Data\bin\Debug\ProjectMM.Data.pdb'.
2>------ Build started: Project: ProjectMM.Data, Configuration: Debug Any CPU ------
3>Project 'ProjectMM' is not up to date. Input file 'c:\projects\projectmm\projectmm\app_start\bundleconfig.cs' is modified after output file 'C:\Projects\ProjectMM\ProjectMM\bin\ProjectMM.pdb'.
3>------ Build started: Project: ProjectMM, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

最佳答案

您可能没有看到所有构建错误。

通过将“消息”图标后面的下拉列表从“Build + Intellisense”更改为“Build Only”,您将能够看到在构建期间引发的 Intellisense 未检测到的错误。请看下面的截图:

Build

关于visual-studio - Visual Studio 2015 项目构建失败但没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31911433/

相关文章:

sql-server - 为什么 Visual Studio 中的 SQL Server 对象资源管理器如此慢?

c++ - 我尝试运行 OpenGl,但 GLUT 屏幕只是呈现白屏?

visual-studio-2015 - 当 ASP.NET Core View 位于某个区域时,Visual Studio 不会部署它们

java - Gradle构建开始失败并显示错误-无法解析配置 ':compile'的所有文件

c++ - 如何使用 freopen 从 Shader 中读取打印流?

c# - 尝试转换 listbox.selecteditem 时为空引用?

C++ 和 SDL : Why can't I compile this program?

visual-studio-2015 - 安装 ASP .Net Core 工具时出现 "Element not found 0x80070490"

visual-studio - checkin 已重命名为 TFS 的 SLN

Eclipse 自动刷新资源并排除构建目录