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
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…
Change to Microsoft .NET Framework 4 and not Microsoft .NET Framework 4 Client Profile:
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
Thanks, this article helped me resolve a warning I hadn’t seen before.
Excellent tip. This article is immensely helpfule to address the exact problem and the solution. Thank you.
Thanks so much. I would like to stay connected to your blog; your explanation helped me when no other would….
Will this work for .NET FrameWork 4.5?