1 。 检查项目中有没有重复引用的包,如果有的话卸掉一个。 2.。 检查项目中引用的包是否自带所重复的包,这样会导致项目之间引发包冲突。 举个例子: 我的项目里ICSharpCode.SharpZipLib是1.0,我在项目中使用NPOI nuget包,NPOI自带ICSharpCode.SharpZipLib 0.8版本,导致项目编译不通过