Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi, i have created a setup project for my application and select these prerequisites for it:
 
1. Microsoft .NET Framework 4 (x86 and x64)
2. SQL Server 2008 Express
3. Windows Installer 4.5
 
but i receive following warning when i build it:
 
The target version of the .NET Framework in the project does not match the .NET Framework launch condition version ' .NET Framework 4 client profile'. Update the version of the .NET Framework launch condition to match the target version of the .NET Framework in the Advanced compile options Dialog Box(vb) or the Application page(C#, F#).
Posted 3-Sep-11 22:09pm
Edited 3-Sep-11 22:11pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try by changing the Launch Conditions Profile. You need to change the framework launch condition version to .Net Framework instead of the Framework Client Profile.
Or else you can choose the Framework Client Profile as a prerequisite (which is the default) instead of the .Net Framework.
 
1) Select the installer project
 
2) Click on binoculars the icon on top - it will load the Launch Conditions Profile.
 
After that follow the steps here[^] for more details on how to change the launch profile.
  Permalink  
Comments
phoenix1167 at 4-Sep-11 4:48am
   
thanks a lot,that was worked but i have another warning yet:
 
The value of the 'public key' attribute in 'Microsoft .NET Framework 4(x86 and x64)' does not match that of file 'C:\Program files\Microsoft SDKs\Windows\V7.0A\Bootstrapper\Packages\DotNetFx40\DotNetFx40_Full_x86_x64.exe'.
 
what does it try to say?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

It's because your "Prerequisite .Net Framework" selected for Installer does not matching with your "Project Target Framework".
 
Have a look at below link for more details.
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/5167197a-12a5-473e-940a-569e92f08f37
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 4 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100