• 请考虑使用 app.config 将程序集“System.Data, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes”从版本“2.0.0.0”[]重新映射


    做mobile开发编译输出提示:

    请考虑使用 app.config 将程序集“System.Data, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes”从版本“2.0.0.0”[]重新映射到版本“3.5.0.0”

    只需在项目中加入 App.Config 文件,文件内容如下即可:

    代码
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        
    <runtime>
            
    <assemblyBinding>
                
    <dependentAssembly>
                    
    <assemblyIdentity name= "System.Data" culture= "neutral" publicKeyToken= "969db8053d3322ac" Retargetable= "Yes"/>
                    
    <bindingRedirect oldVersion= "2.0.0.0" newVersion= "3.5.0.0"/>
                
    </dependentAssembly>
                
    <dependentAssembly>
                    
    <assemblyIdentity name= "System" culture= "neutral" publicKeyToken="969db8053d3322ac" Retargetable= "Yes"/>
                    
    <bindingRedirect oldVersion= "2.0.0.0" newVersion= "3.5.0.0" />
                
    </dependentAssembly>
                
    <dependentAssembly>
                    
    <assemblyIdentity name= "System.Xml" culture= "neutral" publicKeyToken="969db8053d3322ac" Retargetable= "Yes"/>
                    
    <bindingRedirect oldVersion= "2.0.0.0" newVersion= "3.5.0.0" />
                
    </dependentAssembly>
            
    </assemblyBinding>
        
    </runtime>
    </configuration>

    个人猜测,可能是运行时检测到安装有多个版本,推荐用新的版本运行.

  • 相关阅读:
    牛客小白赛23
    三分查找模板和例题
    链式前向星存图模板
    树形dp求解树的重心和例题
    P3915-树的分解-(dfs)
    P2119 魔法阵-(桶排序+前后缀和)
    小阳的贝壳-(差分+线段树+gcd)
    NOJ1370: [蓝桥杯2018初赛]测试次数-(dp)
    begin.lydsy 入门OJ题库:3611-3613:神炎皇、降雷皇、幻魔皇
    1797: [Noi2010]海拔
  • 原文地址:https://www.cnblogs.com/heimirror/p/1630126.html
Copyright © 2020-2023  润新知