Click here to Skip to main content
11,812,712 members (69,238 online)
Rate this: bad
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 21:09pm
Edited 3-Sep-11 21:11pm
Rate this: bad
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.
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
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.

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

  Print Answers RSS
0 Abhinav S 270
1 CHill60 180
2 KrunalRohit 154
3 Palash Mondal_ 145
4 Sergey Alexandrovich Kryukov 140
0 OriginalGriff 3,877
1 KrunalRohit 2,496
2 CPallini 2,240
3 Maciej Los 2,205
4 ppolymorphe 1,750

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 4 Sep 2011
Copyright © CodeProject, 1999-2015
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