sdk: RemoveDepsFileConflicts errors when using .NET Core 2.0
Not sure if this is the right place but I get this when building a .NET Core 2.0 test in VS 2017
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: The "RemoveDepsFileConflicts" task failed unexpectedly.
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyModel, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: File name: 'Microsoft.Extensions.DependencyModel, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: at Microsoft.DotNet.Build.Tasks.RemoveDepsFileConflicts.Execute()
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018:
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: WRN: Assembly binding logging is turned OFF.
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: Note: There is some performance penalty associated with assembly bind failure logging.
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018: To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
3>C:\Users\dfowler\.nuget\packages\microsoft.packaging.tools\1.0.0-beta-25121-01\build\Microsoft.Packaging.Tools.targets(89,5): error MSB4018:
3>Done building project "Microsoft.AspNetCore.Server.KestrelTests.csproj" -- FAILED.
========== Build: 2 succeeded or up-to-date, 1 failed, 0 skipped ==========
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (13 by maintainers)
Commits related to this issue
- Update dependencies from https://github.com/dotnet/arcade build 20191028.5 (#1043) - Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19528.5 — committed to mmitche/sdk by dotnet-maestro[bot] 5 years ago
@ericstj made a fix for this in dotnet/standard yesterday. It made its way to dotnet/core-setup this morning. Once a new build of core-setup is out, using the new Microsoft.NETCore.App version should no longer run into this issue.
Just copy the Microsoft.Extensions.DependencyModel.dll from the SDK folder into microsoft.packaging.tools.
EG:
We just saved Microsoft millions of dollars in dev time 😄