如何在Visual Studio中逐步创建安装和部署项目? [英] How to Create Setup and deployment project in visual studio Progrmatically?

查看:90
本文介绍了如何在Visual Studio中逐步创建安装和部署项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道如何在Visual Studio中以编程方式创建安装和部署项目?我想在不使用Visual Studio加载项的情况下执行此操作.如果有人有任何想法,请帮我提供一些示例代码

预先感谢


krs

Hi All

I want to know How to create Setup and deployment project in visual studio Progrmatically?. I want to do it without using Visual Studio add-ins. If anyone has some ideas just help me out with some sample code

Thanks in advance


krs

推荐答案




也许您可以创建一个模板项目,安装安装模板项目,然后将其导出,您必须具有一个zip文件.

EnvDTE-项目界面


我希望对大家有用
greetings

Hi,

Perhaps, you could create a template project, a setup install template project, then export it, you must have a zip file.

How to: Create Project Templates


You could use the EnvDTE API to create the project programatically, you must use the GetProjectTemplate() and AddFromTemplate() methods.

Here you have a example:

EnvDTE - Project Interface


I hope to have been useful
greetings


这篇关于如何在Visual Studio中逐步创建安装和部署项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆