繁体   English   中英

更改有冲突的程序集引用

[英]Changing conflicting assembly references

我的朋友给了我一个在Xamarin Studio中创建的项目。 当我尝试运行项目时,我收到一些与冲突的程序集引用有关的警告。

我使用AsmSpy工具检查哪些引用存在冲突,并获得以下输出:

Detailing only conflicting assembly references.
Reference: Newtonsoft.Json
    6.0.0.0 by Akavache     <-- this one is Green
    6.0.0.0 by Akavache.Sqlite3     <-- this one is Green
    8.0.0.0 by MyAppName     <-- this one is Red

Reference: Splat
    1.6.0.0 by Akavache
    1.6.0.0 by Akavache.Sqlite3
    1.6.2.0 by MyAppName

我从未与Xamarin Studio一起工作过,并且我对此主题缺乏知识。 如何更改引用以停止此警告?

您应该能够使用程序集重定向将所有程序集“弹出”以使用特定版本。

(您将需要相应地更新名称,公钥和版本)

 <dependentAssembly>
        <assemblyIdentity name="Akavache" publicKeyToken="1234567890" culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
      </dependentAssembly>

它们需要在运行时节点的* .config文件中;

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM