针对32位或64位的目标.NET部署 [英] Target .NET deployment for 32 bit or 64 bit

查看:123
本文介绍了针对32位或64位的目标.NET部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

如何将我的部署定位为32位或64位计算机?我的程序在64位计算机上运行正常,但是当我尝试在32位计算机上运行该程序时,双击exe图标后启动失败.我无法确定根目录在哪里,无论是使用Visual Studio还是InstallShield.

Hi everyone!

How can I target my deployment for 32-bit or 64-bit computers? My program works just fine on a 64 bit computer, but when I try to run it on a 32-bit computer, it fails on startup after double clicking the exe icon. I can''t tell where the root is, whether it be with Visual Studio or InstallShield.

推荐答案

在这种情况下,您的应用程序很可能构建为64位应用程序它只能在64位系统上运行.如果您需要它同时在32位和64位上运行,则必须将Visual Studio中的解决方案定位为32位,并且只要不存在仅64位的依赖项,编译后的应用程序就可以在两种环境中正常工作.
Your application is likely built as a 64 bit application in which case it will only run on a 64 bit system. If you need it to run in both 32 and 64 bit, then you''ll have to target your solution in Visual Studio to 32 bit and the compiled application should work in both environments provided no dependencies exist that are only 64 bit.


这篇关于针对32位或64位的目标.NET部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆