When I changed the prerequisites for my Microsoft Visual Studio setup project to target the .NET Framework 4 and not the .NET Framework 4 Client Profile, I got the message:

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

 

This was caused by the fact, that the setup Launch condition was still on Microsoft .NET Framework 4 Client Profile

 

Solution

Change the Setup Launch condition to match you’re setup prerequisites:

  • Select you’re project in the Solution Explorer
  • Click on the Launch Conditions Editor button

image

 

Note 1

You can change the prerequisites of you’re Microsoft Visual Studio setup project, by right clicking on the setup project, choose properties and click on Prerequisites…

 

image

Change to Microsoft .NET Framework 4 and not Microsoft .NET Framework 4 Client Profile:

image

 

Note 2

When you are working with Microsoft Visual Studio setup projects make sure the following settings are in sync:

– Project Target framework for the projects the setup references

– Prerequisites of the setup project

– Launch condition of the setup project

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.