VS2017 安装打包插件

安装

  1. 开拓VS2017:工具 –> 扩展以及创新
    –> 联机,搜索Microsoft Visual Studio 2017 Installer
    Projects,如下图:

    房地产项目 1

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631508-240488127.png)


**在搜索中输入:Microsoft
Visual Studio 2017 Installer Projects,搜索结果如下:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154631961-1132930659.png)
  1. 下载Microsoft Visual
    Studio 2017 Installer Projects,如下图:

    房地产项目 2

    房地产项目 3

    按提示,关闭所有VS窗口,自动安装,如下图:

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633024-2032820377.png) 

**选择【修改】**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633227-193511756.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633493-32635505.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633727-1291502823.png) 

**安装完成**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154633930-1367653316.png) 

 

**看看安装日志,了解下安装过程,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634243-1656513389.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154634602-867315868.png) 

新建项目

  1. 安装好。打开VS2017,在用安装之解决方下,开始新建安装项目,如下图:
**【新建】-【项目】-【已安装】-【模板】-【其他项目类型】-【Visual
studio Installer】,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635040-1524030630.png) 

**选择【setup
project】如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635368-267221676.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154635758-1918799959.png) 
  1. 补充加入人数文件,项目输出,选择解决方案点Add,如图所示:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636086-1321850433.png) 

**弹出项目输出窗口,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636461-60868074.png) 
  1. 创快捷方式,右键主输出,如下图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154636743-1973833163.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637149-203540149.png) 

**对快捷方式重新命名,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637430-816850032.png) 

**讲快捷方式拖到User's
Desktop,如图:** 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637696-1093298440.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154637946-516938019.png) 
  1. 每当User’s
    Programs Menu 添加文书夹(你的类名为) –> 双击选中文件夹
    –>在右侧右击 –> 创建新的快捷方式 –> 选择Applicaiton
    Folder –> 主输出 XXX –> 确定,如图:

    房地产项目 4

    房地产项目 5

    房地产项目 6

    点【OK】即可

  1. 说到底生成,如图:
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639180-1167002500.png) 

![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639461-156230858.png) 
  1. 注意.NET框架,我们注意下,错误信息
![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154639696-41133240.png) 

**这个信息告诉我们目前打包的.NET框架是4.6.1.与要打包的应用程序不匹配,我们要打包的.NET框架是4.5.2,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640180-832318419.png) 

**于是我们修改.NET框架,修改如下**


**右键打包解决方案-【属性】,如图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640602-2145777618.png) 

**选择前提条件,如下图:**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154640961-1652402091.png) 

**打开后如下图,看到刚才错误的框架**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641305-1015168722.png) 

**我们修改成与打包方案一样的。框架。看看要打包的项目的.NET框架。如下图**


![](https://images2017.cnblogs.com/blog/115581/201711/115581-20171122154641727-1949226951.png) 

 

规定,同时还重生成一浅即可

相关文章