简体   繁体   中英

Windows Form asking .Net framework 4.5 while installing on Windows Xp sp3

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.

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... :)

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM