Reputation: 1808
I have developed a Windows Form application in .Net C# using visual studio 2013. I am very sure that I have selected .Net framework version 3.5 while creating the project, so that it can install on Windows XP sp3 as well.
I have created the setup file using Visual Studio installer plugin. But when I have tried to install it in a machine which have windows xp sp3 with .net framework installed, there is an error showing that it is required .net framework 4.5 to run this application.
I have tried recreating the app, but it didn't work.
Upvotes: 0
Views: 1215
Reputation: 1958
Right click on Setup Project > View > Launch Conditions. Over here, it was already referring to .Net Framework, Right click on it > Properties, change the version to .Net Framework 3.5. It solved the problem.
Upvotes: 0
Reputation: 1808
Alryt.. I have figured it out myself... Thank you dennis.. you gave me the clue...
It have to select from setup project properties--> Prerequisites...
that worked for me... :)
Upvotes: 2
Reputation: 749
In Visual Studio, right-click your project (not the solution, but rather the concrete project), go to properties, select the "Application"-ledger and check what is selected as Target Framework. You should be able to select .Net Framework 3.5 as build target.
Upvotes: 0