我的项目构建全部失败,但没有显示任何错误。我尝试清洁和重建,但没有奏效。
我将 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 未检测到的错误。请看下面的截图:
关于visual-studio - Visual Studio 2015 项目构建失败但没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31911433/