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

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

我将 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 未检测到的错误。请看下面的截图:

https://stackoverflow.com/questions/31911433/

相关文章:

xcode - iOS5 Storyboard错误 : Storyboards are unavai

maven - Javascript Web 应用程序和 Java 服务器,全部在 Maven 中构

build - 使用 msbuild 指定解决方案的项目文件

c# - 调试未启动

eclipse - 在解决构建路径错误之前,无法构建项目。

git - sbt 如何从 git 中提取依赖项?

angular - 组件是2个模块声明的一部分

xcode4 - Xcode 4 在哪里存储方案数据?

android-studio - 此版本的android studio 与使用的gradle 版本不

.net - 如何识别 DLL 是 Debug 还是 Release 构建(在 .NET 中)