Bhartendu Bharti
Bhartendu Bharti

Reputation: 71

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.

Is it possible to develop universal C# application for 32&64 bit xp,vista,7,8,8.1 OS.???

Upvotes: 2

Views: 736

Answers (1)

Dave Markle
Dave Markle

Reputation: 97671

As pointed out in the comments, you can use .NET 4.0 to do this, and compile with Any CPU. Don't use 4.5 or later, as it's not supported on 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. You give up a lot when you do this, though. I recommend just targeting 4.0 and being done with it.

Upvotes: 5

Related Questions