【问题标题】:Building corefx\src\System.Collections\System.Collections.sln solution fails构建 corefx\src\System.Collections\System.Collections.sln 解决方案失败
【发布时间】:2016-03-02 06:22:29
【问题描述】:

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 ==========

【问题讨论】:

    标签: c# .net-core


    【解决方案1】:

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

    带有 coreclr 的测试工具 is not yet compatible 这就是生成它的原因:

    xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.
    

    【讨论】:

      猜你喜欢
      • 2018-04-28
      • 2019-01-02
      • 2021-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多