如何制作适用于双平台(32/64 位)的 vb.net 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14355432/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 11:54:05  来源:igfitidea点击:

How to make vb.net application that works at dual platforms (32/64 bit)

.netvb.net32bit-64bitanycpu

提问by user1970090

Can I create an application that can work on both windows platforms (32 / 64 bit ) at the same time ? if no , how can i create 64bit version and 32bit version ?

我可以创建一个可以同时在两个 Windows 平台(32/64 位)上运行的应用程序吗?如果没有,我如何创建 64 位版本和 32 位版本?

回答by Matt Wilko

Yes you can - just set the compile option in Vizual Studio to AnyCPU (Build>Configuration Manager>Active Solution Platform). To Target 32bit or 64 bit set the platform to x86 or x64 respectively

是的,您可以 - 只需将 Vizual Studio 中的编译选项设置为 AnyCPU ( Build>Configuration Manager>Active Solution Platform)。目标 32 位或 64 位分别将平台设置为 x86 或 x64

Have a look at this link explaining the differences

看看这个链接解释差异

But AnyCPU is not necessarily the best option - so have a look at this article: AnyCPU is it eviland make up your own mind what setting you would like

但是 AnyCPU 不一定是最好的选择 - 所以看看这篇文章:AnyCPU is it evil自己决定你想要什么设置

If you are using Visual Studio Express then have a look at this question and answersexplaining how to do this

如果您使用的是 Visual Studio Express,请查看此问题和解释如何执行此操作的答案