如何在Windows 64位上安装C# 3.5开发的项目?

发布于 2024-10-10 13:44:51 字数 142 浏览 0 评论 0原文

我已经使用 C# 3.5 和 MSSQL 2005 开发了一个项目,并且在发布它之后,它不会在客户端 PC 上的任何 Windows 64 位中进行设置,, 问题是项目是 32 位,而你的电脑是 46 位, 附言。我开发的项目是32位的。 我应该怎么做才能解决这个问题?

i have Developed a Project using C# 3.5 and MSSQL 2005 ,, and after publishing it ,, it does not setup in any windows 64-bit on the Clients PCs ,,
The Problem is the Project is 32-bit and your PC is 46-bit ,
PS. the project i developed in was 32-bit .
What should i do to Solve this Problem ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情绪操控生活 2024-10-17 13:44:51

通常,安全托管项目构建从目标体系结构角度来看是中立的 IL 程序集。只要在 32 位开发环境中创建的程序集在 64 位计算机上安装了正确的 64 位 .Net Framework,就可以在该计算机上正常工作。仅当您使用不安全的构造(例如 PInvoke)或专门为目标平台构建程序集时,才会出现问题。

现在的问题是,为什么您将这个问题标记为 SQL Server 2005 和 .Net 3.5? SQL 2005 的 SQLCLR 程序集仅支持 .Net 2.0。在 64 位 SQL Server 上部署 SQLCLR 程序集时,显然必须安装 .Net 2.0 64 位。

Normally safe managed projects build IL assemblies that are neutral from the target architecture point of view. An assembly created on a 32bit development environment works fine on a 64 bit machine, as long as the proper 64bit .Net Framework is installed on that machine. Problems appear only if you use unsafe constructs, like PInvoke, or if you specifically build your assemblies for a target platform.

Now the question is why did you tag this question SQL Server 2005 and .Net 3.5? SQLCLR assemblies for SQL 2005 support only .Net 2.0. When deploying a SQLCLR assembly on a 64bit SQL Server, the .Net 2.0 64 bit must be, obviously, installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文