Last active
November 8, 2017 09:30
-
-
Save martincostello/cdd0bd1ab7b339b5275b to your computer and use it in GitHub Desktop.
How To Find Which Assemblies Cause The MSB3277 Warning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM How to find the root cause of the warning: | |
REM "MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved". | |
REM 1) Run MSBuild with the option '/verbosity:detailed' and pipe the output to a file. | |
REM 2) Find all lines that contain the text "There was a conflict between ". | |
REM 3) Fix all conflicting assembly versions in any project(s). | |
REM For .NET Framework/MSBuild: | |
MSBuild.exe MyProject.msbuild /verbosity:detailed >> _AssemblyConflicts.log | |
REM For .NET Core: | |
dotnet build /verbosity:detailed >> _AssemblyConflicts.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever I get this warning, I always forget what the "magic" text to search for to find the warnings is. This is a nice aide memoir.