Reputation: 127
I made an app in C# framework .NET 4.0 for Windows 7 x64. I have now been asked to install this app on Windows XP x86 that has only framework 3.0 and some apparently might have only 2.0. Updating to framework 4.0 is not an interesting option since there are 400+ terminals. My question is: can my app be compiled in any framework version(like 2.0) and work on any terminal ? if not any suggestions on how I can make this work ?
Upvotes: 1
Views: 2098
Reputation: 152634
can my app be compiled in any framework version(like 2.0)
Sure, just go to Project->Properties in Visual studio and set the Target Framework.
Be aware, however, that some features that you've built into your app may not be available in older frameworks.
Upvotes: 8
Reputation: 46760
If you are not using any .NET 3 or higher classes or DLLs then sure you can target your projects to .NET 2. What I would do is open each project's settings and target it to .NET 2. Then recompile. If this all works then all is well and you can deploy to the target machines.
You'll have to change the Target Framework setting for each project in Project->Properties.
Upvotes: 0
Reputation: 3404
You have to change the target framework of your application. There is article about this on MSDN.
However, if you used some features from .NET 4.0 you'll have to update yuour code to not use them anymore.
Upvotes: 0
Reputation: 6105
If you only use 2.0 features you can compile to it. Just set (in the project properties) the target framework to whatever you need.
Upvotes: 0