Click here to Skip to main content
15,891,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I please need help configuring my newly created C# Windows Forms App that was created with Visual Studio 2014 to be compatible with framework 3.5 and below to work on older operating systems like Windows XP. How do I do that? Please help me.

Thank you!

:)
Posted
Updated 31-Aug-14 22:07pm
v2

Open your project in the Solution Explorer, and double click the "Properties" branch.
In the page that appears, Select the "Application" tab from the right hand side.
Change the "Target framework" to 3.5 or below.
Save the page, and rebuild your project.
 
Share this answer
 
Compatibility of an application with a specific framework is not a configuration issue, but what you have used in your application.
If you used new features from framework 4 or 4.5 there is no way to run it on framework 3 or 3.5...and not matter what you are writing in the configuration file...
If you want to create an application for older frameworks change target framework option of your project in Visual Studio...
 
Share this answer
 
Hello @Armand Peens,
I have faced this type of problem.So To avoid this ,try to bring it to the lowest version as far as possible.
To Changed the compile Target Framework ,Go To Solution explorer:-1)Right Click On Project
2)Go To Properties
3)Select Application Tab
4)Change Target Framework to 2.0


If You are Choosing Target Framework 4.0 or above Then it will not work in windows xp at all. For these you have to install windows Xp service 3.

I have tried to change it to Framework 2.0 and then build it & Installed Dot Net Framework 2.0 in windows XP & Finally working very well.

Hope It Helps You
 
Share this answer
 
Comments
DineshMaind 1-Sep-14 4:54am    
This is better solution than previous solutions suggested.
Kornfeld Eliyahu Peter 1-Sep-14 5:02am    
How that? OG and me suggested exactly the same thing - change Target Framework?
Neetin_1809 1-Sep-14 5:16am    
Of course Sir OG Sir gave very good clarification but this solution gave more detailed compatibility with XP2 and XP3. I already gave my +5 to OG and this too.
Kornfeld Eliyahu Peter 1-Sep-14 5:22am    
I see your point, but the problem is that the version-OS comparison is far to be accurate, so for that matter it is the worst solution...
See yourself: http://msdn.microsoft.com/en-us/library/8z6watww(v=vs.100).aspx
DineshMaind 1-Sep-14 5:33am    
Thanks @Kornfeld Eliyahu Sir for more detailed information.
Thanks guys I did that but then I got errors. Microsoft says I must add the following code to the App.Config file but it also doesn't work:

Add the <supportedRuntime> element as follows to the application configuration file:

<configuration>
<startup>
<supportedRuntime version="<version>"/>
</startup>
</configuration>



I did that but it also didn't work.

Please help!

Thank you!

:)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900