Click here to Skip to main content
15,747,911 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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#).
Updated 3-Sep-11 21:11pm

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.
Share this answer
M_Mogharrabi 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?
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.
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900