在进行全新的Win8.1安装并从备份中恢复了所有代码后,当我构建解决方案的主项目时,突然收到了来自Visual Studio的警告:
“Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.”
我将输出日志级别设置为详细,并找到了一些像这样的条目:
“There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it had a higher version.”
问题是,我在解决方案中没有引用`mscorlib`。我有几个应用程序需要.NET 3.5,但我无法看出它们之间有何关联。
一个不同之处:之前未发生此警告的旧Win8.1安装是独立的机器;而这次是域加入的。我不知道是否有影响(我看不出来),但我想至少提一下。
“Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.”
我将输出日志级别设置为详细,并找到了一些像这样的条目:
“There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it had a higher version.”
问题是,我在解决方案中没有引用`mscorlib`。我有几个应用程序需要.NET 3.5,但我无法看出它们之间有何关联。
一个不同之处:之前未发生此警告的旧Win8.1安装是独立的机器;而这次是域加入的。我不知道是否有影响(我看不出来),但我想至少提一下。