Jun 232011
 

 While it all makes sense now, it didn’t make sense when I first saw this warning message:

Warning 304 The version of the .NET Framework launch condition ‘.NET Framework 4 Client Profile’ does not match the selected .NET Framework bootstrapper package. Update the .NET Framework launch condition to match the version of the .NET Framework selected in the Prerequisites Dialog Box.

 While building a Setup project, which hosts a Windows Service that requires the full .NET Framework 4 profile, this warning message appears. I do not accept warnings or error messages in my code, so naturally I must seek and destroy the cause of this message. Before you do the following, make sure that the client profile selected matches between your project properties and the .NET framework profile on the prerequisites screen from the setup project’s properties screen.

After the setup project’s prerequisites match your project’s client profile, change the profile for your setup project’s installer Launch Conditions.

  1. Right-click on the setup project, select View and then Launch Conditions.
  2. Click on .NET Framework under Launch Conditions.
  3. Change the Version in the properties window to match the client profile selected in the project properties and setup project prerequisites.
Launch Conditions in Visual Studio

Launch Conditions Settings in Visual Studio

  One Response to “.NET Framework Launch Condition Warning”

  1. UPDATE: You have to apply the prerequisites to each build configuration (e.g. Debug, Release, Deploy_QA, Deploy_PROD, etc.). Your build server thanks you in advance.

 Leave a Reply

(required)

(required)


− two = 1

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>