Skip to content

Instantly share code, notes, and snippets.

@martincostello
Last active November 8, 2017 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martincostello/cdd0bd1ab7b339b5275b to your computer and use it in GitHub Desktop.
Save martincostello/cdd0bd1ab7b339b5275b to your computer and use it in GitHub Desktop.
How To Find Which Assemblies Cause The MSB3277 Warning
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
@martincostello
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment