Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi everyone! I have a project that has been completed in Visual Studio 2012. When I deploy it and require .net framework 4.0, it still requires 4.5 when it's installed on a separate computer. What am I doing wrong? I'm using the msi deployment with InstallShield method for deployment.
Posted 10-Oct-12 5:41am
Comments
Wes Aday at 10-Oct-12 11:47am
   
Did you build your program using .NET 4.5?
joshrduncan2012 at 10-Oct-12 11:48am
   
I have .net framework 4.5 on my computer that has Visual Studio 2012 on it. Should I remove it and reinstall 3.5 or 4.0?
Sergey Alexandrovich Kryukov at 10-Oct-12 12:59pm
   
No need to do so. Later versions of .NET support earlier versions. --SA
joshrduncan2012 at 10-Oct-12 12:19pm
   
I don't think that Visual Studio 2012 works with anything but 4.5. I'm gonna have to revert back to Visual Studio 2010. :(
Sergey Alexandrovich Kryukov at 10-Oct-12 12:58pm
   
I don't think telling lies can excused by the fact you simply did not look properly. Visual Studio 2012 works with multiple assembly targets; and this feature was introduced with VS 2008. --SA
Sergey Alexandrovich Kryukov at 10-Oct-12 12:56pm
   
How exactly do you "require .NET Framework 4.0"? --SA
joshrduncan2012 at 10-Oct-12 12:58pm
   
In the InstallShield deployment (Setup and Deployment / msi) set the setting to .NET Framework 4.0 for pre-reqs. When I attempt to install it on my boss's computer, it still asks for 4.5 even though 4.5 is not a pre-req.
Sergey Alexandrovich Kryukov at 10-Oct-12 13:00pm
   
I don't understand. I don't see where you "required" some target. --SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to go to the properties of each project and choose the property "Target Framework". It's usually goes under "Application" tab of "Properties" window.
 
—SA
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 696
1 OriginalGriff 468
2 Tadit Dash 390
3 sanket saxena 337
4 Peter Leow 228
0 Sergey Alexandrovich Kryukov 11,890
1 OriginalGriff 7,335
2 Peter Leow 5,003
3 Abhinav S 3,943
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web03 | 2.8.140421.2 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid