question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deps file for MSBuild shouldn't downgrade common task dependencies.

See original GitHub issue

Steps to reproduce

Produce a task with a dependency on a new version of roslyn.

Expected behavior

Task works on latest SDK

Actual behavior

Task fails to load with ref-def mismatch for roslyn DLLs since old version (2.1.0) is listed in MSBuild’s deps file and carried in the MSBuild bin folder.

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview6-011681
 Commit:    2f5626d019

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   D:\dotnet\corefx\.dotnet\sdk\3.0.100-preview6-011681\

Host (useful for support):
  Version: 3.0.0-preview6-27629-07
  Commit:  a3967b6096

.NET Core SDKs installed:
  2.2.103 [D:\dotnet\corefx\.dotnet\sdk]
  3.0.100-preview6-011681 [D:\dotnet\corefx\.dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.1 [D:\dotnet\corefx\.dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.1 [D:\dotnet\corefx\.dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview6-19230-05 [D:\dotnet\corefx\.dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.1 [D:\dotnet\corefx\.dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview6-27629-07 [D:\dotnet\corefx\.dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview6-27629-07 [D:\dotnet\corefx\.dotnet\shared\Microsoft.WindowsDesktop.App]

@nguerrera suggested a tactical fix https://github.com/dotnet/arcade/issues/2748#issuecomment-497140703

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nguerreracommented, Jun 4, 2019

Migrate is gone: dotnet/cli#11481 🎉

0reactions
nguerreracommented, Jun 5, 2019

Confirmed fixed in 3.0.100-preview7-012271.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom msbuild task tries to load dependency with wrong ...
MsBuild itself includes a dependency on Newtonsoft.Json 11.0.1, so custom tasks can't load any other version of this dependency. Workarounds:.
Read more >
NuGet Package Dependency Resolution
The Direct dependency wins rule can result in a downgrade of the package version, thus potentially breaking other dependencies in the graph.
Read more >
NuGet pack should not fail for release packages with ...
Currently, release package can not have prerelease development dependency. For example, that prevents us from using StyleCop.
Read more >
3.0.1xx Milestone
Deps file for MSBuild shouldn't downgrade common task dependencies. source-build. #10298 by ericstj was closed on Jan 31, 2020.
Read more >
The located assembly's manifest definition does not match ...
I have a solution which encompasses about 37 projects, all of them output their binaries into same directory. Nugets used by the projects ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found