简体   繁体   English

如何使用Visual Studio开发可在所有Windows OS XP,Vista,7、8上运行的C#应用​​程序

[英]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.

相关问题 在Vista上使用Visual Studio 2005 C#编写的代码无法在使用Visual Studio 2010 C#的新Windows 7 PC上运行 - Code written using visual studio 2005 C# on vista does not run on new Windows 7 PC using visual studio 2010 C# 使用Visual Studio 2012创建的C#Windows窗体应用程序无法在Windows XP上运行 - C# Windows forms app created using Visual Studio 2012 not working on windows xp C#从Service(和Vista)运行Windows Form Application - C# Run Windows Form Application from Service (and in Vista) 使用C#为Windows XP制作Vista风格的应用程序 - Making Vista style apps in C# for windows XP 如何在不使用Visual Studio的情况下编译和运行C#Windows Forms应用程序 - How to compile and run a C# Windows Forms application without visual studio 如何在C#Windows窗体应用程序Visual Studio 2010中运行AVRDUDE - How to run AVRDUDE in C# windows form application visual studio 2010 .NET 3.5(C#)应用程序无法在Windows XP Professional上运行 - .NET 3.5 (C#) application does not run on Windows XP Professional 使用MongoDB的Windows窗体应用程序(Visual Studio 2008 C#) - Windows forms application using MongoDB (Visual Studio 2008 C#) 使用Visual Studio 2008部署Windows应用程序(C#) - Deploying Windows Application(C#) using visual studio 2008 使用Visual Studio以不同语言运行C#应用程序 - Run C# Application in Different Language using Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM