Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all
I have a windows forms project on vs2015 when i create a setup project and build it , it doesn't work on xp , i googled the problem and found that i should change the toolset of the project from the properties window but it opens in design view which don't have the toolset option, so how i set the platform toolset for the project?

What I have tried:

so how i set the platform toolset for the project?
Posted
Updated 21-Feb-17 23:24pm

Check the Framework version that you are using for your solution in the Project Settings. Here is a table from Microsoft: .NET Framework System Requirements[^]
 
Share this answer
 
Comments
zigzagooo 23-Feb-17 1:22am    
The target is already .NET framework 4.0 and Set the project type to x86 (not Any CPU).
Graeme_Grant 23-Feb-17 2:10am    
Then the problem is something else. What is the error message (verbatim). Please update your question with the message by using the Improve question.
See How to: Modify the Target Framework and Platform Toolset[^].

To run .NET applications with XP you must at least

  • Set the project type to x86 (not Any CPU).
  • Target .NET framework 4.0 or lower (higher versions does not work with XP but are selected by default with recent VS versions).
  • Ensure that the XP system on which the application is installed has the corresponding .NET framework installed

The first two settings are VisualStudio project settings (see also above link).
For the third it might be necssary to include the framework redistributable with your installer.
 
Share this answer
 
Comments
zigzagooo 23-Feb-17 1:22am    
The target is already .NET framework 4.0 and Set the project type to x86 (not Any CPU).
Jochen Arndt 23-Feb-17 2:30am    
Your question:

"so how i set the platform toolset for the project"

is explained in detail by the link of my solution. I just added some more information hoping it is useful.
zigzagooo 25-Feb-17 6:44am    
yes sir i know but i can't set the toolset as the link from vs2015 not same steps

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