Programs compiled with VS2010 can target various .NET Framework. However, in many versions of Windows, the latest versions of .NET are not always installed.
Check which version of the .NET Framework your program is using by viewing the Application tab of your project properties. You should see the Target structure drop-down list, which will tell you which version of the platform other computers will need to install to run your program.
You have several options for your program to work on other computers.
- Compile the program with a different, lower structure. (For example, .NET 2 is often available on Windows XP, while .NET 4 is unusual on this OS.) This will only work if you are not using any features from later versions of .NET.
- Install the required .NET platform on the client machine. Microsoft provides frameworks for downloading and installing from http://www.microsoft.com/net/download
- Try creating a Windows installer using the setup project template. Add a new project to your solution from the Installation and Deployment category. After setting up this project, you must have an installer to work on other machines.
source share