当我使用VS2013构建时,我在“输出”窗口中显示以下内容(诊断登录):
> 2>Target "ValidateMSBuildToolsVersion" skipped. Previously built
> unsuccessfully. 2>Done executing task "MSBuild" -- FAILED. (TaskId:75)
> 2>Done building target "ResolveProjectReferences" in project
> "App.Tests.csproj" -- FAILED.: (TargetId:122) 2>Target
> "_CheckForCompileOutputs: (TargetId:123)" in file "C:\Program Files
> (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from
> project "C:\PROJECTS\App\App.Tests\App.Tests.csproj"
> (target "_CleanGetCurrentAndPriorFileWrites" depends on it): 2>Done
> building target "_CheckForCompileOutputs" in project
> "App.Tests.csproj".: (TargetId:123)
虽然没有任何迹象表明失败了。所有参考解决。可能是什么导致了这个? VS2015构建良好。
CSProj的顶部:
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.Net.Compilers.2.0.1\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.0.1\build\Microsoft.Net.Compilers.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>