构建corefx \ src \ System.Collections \ System.Collections.sln解决方案失败

时间:2015-11-28 04:31:39

标签: c# .net-core

corefx的干净同步后,我尝试使用VS 2015构建corefx \ src \ System.Collections \ System.Collections.sln时出现以下错误。我认为这应该起作用清洁同步。我是唯一一个还是其他人也看到过这个?如果我解决了失败,我会发布我发现的内容,以便它显示在搜索上。

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Failed to resolve all project references for 'System.Collections'. The package restore result for 'System.Collections' may be incomplete.
Failed to resolve all project references for 'System.Collections.Tests'. The package restore result for 'System.Collections.Tests' may be incomplete.
Failed to resolve all project references for 'System.Collections'. The package restore result for 'System.Collections.Tests' may be incomplete.
xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.
Some packages are not compatible with DNXCore,Version=v5.0.
NuGet package restore failed.
1>------ Build started: Project: System.Collections, Configuration: Debug Any CPU ------
1>C:\Users\kingc\Documents\Git\corefx\packages\Microsoft.DotNet.BuildTools.1.0.25-prerelease-00121\lib\sign.targets(39,5): error : C:\Users\kingc\Documents\Git\corefx\bin/obj/Windows_NT.AnyCPU.Debug\System.Collections\System.Collections.dll: PE file is already strong-name signed.
2>------ Build started: Project: System.Collections.Tests, Configuration: Debug Any CPU ------
2>  System.Collections.Tests -> C:\Users\kingc\Documents\Git\corefx\bin\Windows_NT.AnyCPU.Debug\System.Collections.Tests\System.Collections.Tests.dll
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

1 个答案:

答案 0 :(得分:0)

解决方案文件不会引用所有依赖项目。只需添加解决方案项目引用的项目,即可修复有关无法解析XXX的所有项目引用的警告。

带有coreclr的测试工具is not yet compatible就是为什么会这样生成的:

xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.
相关问题