如何在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