金沙澳门官网登录-www.js8.com-金沙澳门官网下载app

VS2017 安装打包插件

VS2017 安装打包插件。安装

  1. VS2017 安装打包插件。打开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,如下图:

    图片 2VS2017 安装打包插件。

    图片 3VS2017 安装打包插件。

    按照提示,关闭所有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) 

 

确定,同时再重新生成一次即可

本文由金沙澳门官网登录发布于www.js8.com,转载请注明出处:VS2017 安装打包插件

TAG标签:
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。