[英]How to develop c# application using visual studio which will run on all windows OS xp,vista,7,8
I have windows 8.1 64 bit with visual studio 2013. But I want to develop C# application which will run on all Windows operating system xp,vista,7,8,8.1 32bit&64bit. 我的Visual Studio 2013使用的是Windows 8.1 64位。但是我想开发C#应用程序,它将在所有Windows操作系统xp,vista,7、8、8.1 32位和64位上运行。
Is it possible to develop universal C# application for 32&64 bit xp,vista,7,8,8.1 OS.??? 是否有可能针对32&64位XP,Vista,7、8、8.1 OS开发通用C#应用程序。
As pointed out in the comments, you can use .NET 4.0 to do this, and compile with Any CPU. 如注释中所指出的,您可以使用.NET 4.0进行此操作,并使用Any CPU进行编译。 Don't use 4.5 or later, as it's not supported on Windows XP. 不要使用4.5或更高版本,因为Windows XP不支持它。
You can even back-target your app all the way to the 2.0 runtime if you have a very simple application and you want to have the widest availability without having to install a later version of the .NET Framework on old machines. 如果您有一个非常简单的应用程序,并且希望具有最大的可用性,而不必在旧计算机上安装更高版本的.NET Framework,则甚至可以将应用程序一直反向定位到2.0运行时。 You give up a lot when you do this, though. 但是,这样做时您会放弃很多。 I recommend just targeting 4.0 and being done with it. 我建议只针对4.0并完成它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.