我已经能够构建我的 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/