version of .net framework launch not match .net framework bootstrapper project

后端 未结 3 920
迷失自我
迷失自我 2021-02-20 04:33

When I build the release project of the vb.net 2010 I just started using, I get two warnings:

  1. the version of the .net framedwork launch condition does not ma

相关标签:
3条回答
  • 2021-02-20 05:06

    Okay so I ran into this issue as well. There are 3 places I found that need to match. Not 2 places. I am using VS2015 with the Add-in Setup Project available from Microsoft.

    Place 1: Target Framework needs to be what you are targeting, variable X. To get to this go to the properties of your main project and select the target framework for your code.

    Place 2: Right click your setup project and go to view > Launch conditions, click .Net Framework, and in the properties window select your target framework... variable X.

    Place 3: Right click your setup project and go to properties > Prerequisites. This will show the pre-requisite from the program... In my case Variable X needed to match what was checked in this box.

    This resulted in a successful build of the project without the warning.

    0 讨论(0)
  • 2021-02-20 05:24

    This error is because of a mismatch. You can fix it by making either one of them match the other.

    One is the "Launch Condition." The other is the "Prerequisite."

    To change the Launch Condition:

    • right click your setup project in the Solution Explorer
    • click View - Launch Conditions
    • select the ".NET Framework" item under Launch Conditions
    • in the properties window, see the Version item. You can open the drop down menu to select the appropriate framework version.

    To change the Prerequisite:

    • right click your setup project in the Solution Explorer
    • choose properties, a Properties Pages dialog appears
    • click the "Prerequisites..." button
    • check and uncheck framework versions as appropriate
    0 讨论(0)
  • 2021-02-20 05:30

    Yet another poorly documented feature from our friends at Microsoft. With the Setup project selected there are an array of icons in the solution explorer toolbox; one of which is "Launch Condition Editor".

    Select the setup project, select the "Launch Condition Editor", new window opens. Select "Launch Conditions", ".Net Framework" Look at properties, version. Select the present version, opens drop down menu, select desired framework.

    Rebuild.

    (Thanks to http://social.msdn.microsoft.com/Forums/windows/en-US/5167197a-12a5-473e-940a-569e92f08f37/error-the-version-of-the-net-framework-launch-condition-net-framework-4-does-not-match-the)

    0 讨论(0)
提交回复
热议问题