"发现同一依赖程序集的不同版本之间存在冲突"的警告怎么解决?
我有一个解决方案,下面有几个项目,其中一个项目引用了另外两个项目。再重新生成时,提示警告:发现同一依赖程序集的不同版本之间存在冲突,双击后提示我要不要在app.config文件中添加绑定重定向记录来解决冲突,点击确定后该项目根目录下生成app.config文件,文件内容如下:
<?xml version="1.0"?><configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-9.0.242.0" newVersion="9.0.242.0"/> </dependentAssembly> </assemblyBinding> </runtime></configuration>