How to handle “The target version of the .NET Framework in the project does not match…” warning message in Microsoft Visual Studio

When you build the setup project in Microsoft Visual Studio 2010 you receive the following warning 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#).


When you add a Setup project to your solution Microsoft Visual Studio 2010 sets two default values that usually don’t match the project settings: prerequisites and launch condition.

These are both set to “.NET Framework 4 Client Profile” and if you set your project’s target framework to “.NET Framework 4” you get the warning message above.

(See the How to solve “The version of the .NET Framework launch condition ‘.NET Framework 4′ does not match…” warning in Microsoft Visual Studio post to handle the error with the incorrect prerequisites.)


Change the launch condition in the Setup project:

  • Right click the Setup project,
  • Select “View”, “Launch Conditions”,
  • Expand the “Launch Conditions”,

VS Prerequisites Setup Launch Condition

  • Right click the .NET Framework and select “Properties Window”,
  • In the Properties window set the Version to “.NET Framework 4”.

VS Prerequisites Setup LaunchCondition Properties


Join the Conversation


Leave a comment

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