"Encountered conflict" build messages reported for satellite assemblies during build of .NET Core project
See original GitHub issueRepro:
- Create a .NET Core project targeting net46
- Add a package reference to some nuget package that contains satellite assemblies, e.g. Microsoft.VisualStudio.Composition, 15.3.38
- Run
msbuild /v:diag > build.log
The build succeeds but the log contains messages like:
Encountered conflict between 'CopyLocal:C:\Users\tomat\.nuget\packages\microsoft.visualstudio.composition\15.3.38\lib\net45\cs\Microsoft.VisualStudio.Composition.resources.dll' and 'CopyLocal:C:\Users\tomat\.nuget\packages\microsoft.visualstudio.composition\15.3.38\lib\net45\de\Microsoft.VisualStudio.Composition.resources.dll'. Could not determine winner due to equal file and assembly versions. (TaskId:18)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (9 by maintainers)
Top Results From Across the Web
MSB3277: Found conflicts between different versions of ' ...
This error occurs during a build when more than one version of the same dependent assembly is referenced in a build of the...
Read more >c# - .NET CORE ALINK : warning AL1073: Referenced ...
I was able to solve the issue, it seems in my case that I needed 2 things: Suggestion from gofal3, I referenced .NET...
Read more >Rider can't compile solution with mixed .net core and . ...
I tried to create an ASP.NET Core Web App project mixed with a Bridge.NET class library, which is a .net framework project, only...
Read more >Could not load file or assembly...Oh my! How I went ...
This blog post explains how to debug and resolve assembly versioning conflicts with .NET CLI, ILSpy and FusionLog.
Read more >NASA Open Source Software
CODE is a framework for the control and observation of resources, services, and applications. The technology supports the secure and scalable transmission of ......
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 Free
Top 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
@nguerrera The problem is continue with Core 2.0 SDK and VS 17.3 Message is not example same except first part : "Encountered conflict between "…
6> Encountered conflict between ‘Platform:System.Security.Cryptography.Csp.dll’ and ‘Runtime:C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.security.cryptography.csp\4.3.0\runtimes\unix\lib\netstandard1.3\System.Security.Cryptography.Csp.dll’. Choosing ‘Platform:System.Security.Cryptography.Csp.dll’ because AssemblyVersion ‘4.1.0.0’ is greater than ‘4.0.1.0’.
Give it a higher version. See https://github.com/dotnet/sdk/blob/master/src/Tasks/Common/ConflictResolution/ConflictResolver.cs.