gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 04:19:08 26 4
gpt4 key购买 nike

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

Referenced assembly  'c:\Program Files\Microsoft SQLServer\90\SDK\Assemblies\Microsoft.SqlServer.Replication.dll'   targets a different processor than the applicationReferenced 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com