Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I create a C# windows form application with .net 4.5.1
Now I cant Install it on windows XP !
How I can change .net version for my created project ?
and How I can create an app that able to install in any version of windows ?
Note : I use visual studio 2013 Ultimate
Posted

Quote:
How I can change .net version for my created project ?

You can go to the Properties of your project, and change the Target Framework to a lower one that runs on Windows XP. Note that if you use .NET 4.5-specific features, you'll have to replace them in the code.
Quote:
How I can create an app that able to install in any version of windows ?

You always have to make sure that your app uses a .NET version that can run on all Windows versions you want to support.
 
Share this answer
 
Comments
‫محم د‬‎ 28-Dec-14 11:37am    
I use sqlite library in my app . when I change .net target occur an Error it means :
sqlite need .net 4+ !
so How I can use sqlite in any version of windows ?
Thomas Daniels 28-Dec-14 11:39am    
I have never used SQLite, but I would be surprised if it could not run on .NET 3.5. If it gives that error, try to find a SQLite library that runs on a lower version.
check .NET Framework System Requirements[^] and decide which .net framwork should use for range of Operating sytem you targetting.

then go to project properties and set target .net framework accordingly

https://www.nuget.org/packages/System.Data.SQLite[^]
http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog[^]
https://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca[^]
 
Share this answer
 
v2
Comments
‫محم د‬‎ 28-Dec-14 11:33am    
thank ! I do that But it doesent work ! Becuse I use sqlite in my app and it doesent run on .net 3.5 or later ! How I can solve it ?? it mean in windows XP we cant work with sqlite ???
DamithSL 28-Dec-14 11:37am    
how you add sqlite? may be added sqlite version supports for .net 4.0, remove it and use nuget package manager to add sqlite
‫محم د‬‎ 28-Dec-14 11:50am    
thanks a lot :)

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