How can I configure what .NET version should be installed by windows installer in VS 2017

丶灬走出姿态 提交于 2019-11-29 17:04:18

When you create a setup project and add primary output of a project to the setup project, the setup project automatically detect dependencies including Microsoft .Net Framework. To see if the detected dependency is correctly what you need, you cam see the following locations:

  1. First of all, right click on Dependencies and click on Refresh Dependencies.

  2. Check prerequisites for your project:

    • Right click on setup project and choose Properties.
    • In Properties dialog, from the Configurations combo box choose the configuration, and repeat the following steps for both Debug and Release.
    • Click on Prerequisites... button to open Prerequisites.
    • In the Prerequisites dialog, check the desired .Net Framework version.
    • Press OK and Make sure you repeat above steps for both Debug and Release.
  3. Check Launch Conditions for your setup project:

    • Right click on setup project and from View select Launch Conditions:
    • Then under Launch COnditions node, select .Net Framework node and right click and select Properties Window.
    • In Properties Window check the Version property for .Net Framework launch condition.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!