如何避免 Windows 和 .Net 中的 32/64 位架构困境? [英] How to avoid 32/64 bit architecture dilemma in Windows and .Net?
问题描述
可能的重复:
Visual Studio任何 CPU"目标是什么意思?一个>
我们有一个 WPF 应用程序,它必须在从 Windows XP x32 到 Windows 8 x64 的大量 Windows 机器上运行.我们的应用程序包括 NHibernate 和 SQLite.我们不需要 x64 的任何特性.如何修改应用程序以在所有架构上运行而没有任何问题?
We have a WPF application that must work on plenty of Windows machines from Windows XP x32 to Windows 8 x64. Our app includes NHibernate and SQLite. We do not need any feature of x64. How can modify application to run without any problem on all architectures?
- 我们的应用在 .Net 4.0 中
推荐答案
除非您同时拥有 64 位和 32 位 dll 的外部依赖项,否则我只会针对最低公分母进行编译,即:x86 它将安装并正确运行32 位和 64 位版本的 Windows.
Unless you have both the 64bit and 32 bit dll's of your external dependences I would just compile for the lowest common denominator i.e: x86 it will install and run correctly on both 32 bit and 64 bit versions of windows.
这篇关于如何避免 Windows 和 .Net 中的 32/64 位架构困境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!