c# - 如何解决警告 "Referenced assembly targets a different processor than the application"

标签 c# sql-server visual-studio

我已经能够构建我的 Windows 窗体应用程序来访问 SQL Server 中的数据库。除了可以备份/恢复数据库的部分之外,应用程序的所有部分都能够访问服务器。在这部分我无法访问服务器上的数据库并且已经开始相信这是因为这些警告。以下内容的确切含义是什么?我该如何更正它们?

Referenced assembly
  'c:\Program Files\Microsoft SQLServer\90\SDK\Assemblies\Microsoft.SqlServer.Replication.dll' 
  targets a different processor than the application

Referenced assembly
  'C:\Windows\assembly\GAC_32\Microsoft.SqlServer.BatchParser\9.0.242.0_89845dcd8080cc91\Microsoft.SqlServer.BatchParser.dll'
  targets a different processor than the application.

最佳答案

你问这个问题已经一年了..但我只想给出这个问题的解决方案......

如果您使用 VS2010,请转到您的项目属性,转到编译、高级编译选项,然后将您的 objective-c PU 设置为 x86 或 x64...不能同时...选择一个...

希望这能解决.. :)

关于c# - 如何解决警告 "Referenced assembly targets a different processor than the application",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3244464/

相关文章:

c# - 如何在按钮悬停时在面板周围绘制边框?

c# - 将 TestSettings 文件添加到 Visual Studio 中的解决方案项

c# - 为什么自定义 Where() 实现比 LINQ Where() 慢

sql-server - 如何在 SQL SERVER 2014 中以正确的顺序删除表?

sql - 从连接表中删除重复行

SQL Server通过xmltype列和输出xml之间的两个表之间的关系

python - 在 Windows 上安装 PyUblas

c# - 在 C# 中创建动态键盘 Telegram Bot ,MrRoundRobin API

c# - 在 C# 中,将 "\\"替换为 "\"

c# - 动态执行基于 SOAP 的 Web 服务而不生成代理