如何使用多个项目部署VB.NET解决方案

时间:2021-01-12 14:03:26

I work in visual studio 2012 and make VB.NET applications frequently but the applications I make are usually small scale and only have one project within the solution. So I just package these into a click once deployment and and publish it out. But recently I have started working on a solution that has over 50 different projects (various custom controls/dll's, windows forms, data models, etc.) Each project points at different components of other projects and thus has a reference to them.

我在visual studio 2012工作并经常制作VB.NET应用程序,但我制作的应用程序通常规模较小,只有一个项目在解决方案中。因此,我只需在部署后将其打包并单击并将其发布出去。但最近我开始研究一个包含50多个不同项目的解决方案(各种自定义控件/ dll,windows窗体,数据模型等)。每个项目都指向其他项目的不同组件,因此可以参考它们。

So my question is, what is the correct procedure to push out a package for a user to run an application that has this many projects? There is a main startup project that runs first so do I just deploy that project and everything will be packaged in it? How do I make sure all the custom dll's are being deployed? I've also though maybe making an MSI would help encapsulate all the components that need to be installed? I've tried researching this topic but I didn't find too much information about it.

所以我的问题是,推出一个包供用户运行具有这么多项目的应用程序的正确程序是什么?有一个主要的启动项目首先运行,所以我只是部署该项目,一切都将打包在其中?如何确保部署所有自定义dll?我也想制作一个MSI可以帮助封装所有需要安装的组件吗?我已经尝试过研究这个主题,但我没有找到太多关于它的信息。

1 个解决方案

#1


0  

Only one application can be the "startup project". You should be able to choose which one is the startup project for the ClickOnce application manifest. If you want to have multiple different executables, make different manifests.

只有一个应用程序可以是“启动项目”。您应该能够选择哪个是ClickOnce应用程序清单的启动项目。如果您想拥有多个不同的可执行文件,请进行不同的清单。

One option is to create a project that integrates the others into some sort of launcher. But fundamentally, a ClickOnce application manifest must lead to a single executable. That executable may have one or more referenced libraries or additional projects that will be automatically included during the deployment process.

一种选择是创建一个项目,将其他项目集成到某种启动器中。但从根本上说,ClickOnce应用程序清单必须导致单个可执行文件。该可执行文件可能具有一个或多个引用的库或在部署过程中将自动包含的其他项目。

#1


0  

Only one application can be the "startup project". You should be able to choose which one is the startup project for the ClickOnce application manifest. If you want to have multiple different executables, make different manifests.

只有一个应用程序可以是“启动项目”。您应该能够选择哪个是ClickOnce应用程序清单的启动项目。如果您想拥有多个不同的可执行文件,请进行不同的清单。

One option is to create a project that integrates the others into some sort of launcher. But fundamentally, a ClickOnce application manifest must lead to a single executable. That executable may have one or more referenced libraries or additional projects that will be automatically included during the deployment process.

一种选择是创建一个项目,将其他项目集成到某种启动器中。但从根本上说,ClickOnce应用程序清单必须导致单个可执行文件。该可执行文件可能具有一个或多个引用的库或在部署过程中将自动包含的其他项目。