Deps file for MSBuild shouldn't downgrade common task dependencies.
See original GitHub issueSteps 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:
- Created 4 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Migrate is gone: dotnet/cli#11481 🎉
Confirmed fixed in 3.0.100-preview7-012271.