mscorlib version conflict during build

前端 未结 8 751
情深已故
情深已故 2020-11-29 08:43

On a new Win8.1 reinstall, with all of my code restored from backup, I\'m suddenly now getting a Visual Studio warning when I build the main project of my solution:

8条回答
  •  独厮守ぢ
    2020-11-29 09:30

    I solved this by setting my verbosity to Diagnostic as per this answer.

    Once I did that and rebuilt my solution, the build log actually listed the specific packages that depend on the two different versions of mscorlib.

    In my particular case, my project had references to version 2.0.20126.16343 of System.Net.Http. I opened up the NuGet Package Manager and updated this package to the latest version (4.3.4 at the time). The next time I built my solution, the warnings were gone.

提交回复
热议问题