如何打包网站和数据库项目

发布于 2024-09-08 20:12:53 字数 334 浏览 6 评论 0原文

我正在使用 Visual Studio 2010。我有一个包含 2 个 SqlServer 数据库项目和 Web 应用程序项目的解决方案。当我构建每个项目时,它们会生成网站的 SQL 脚本和 zip 文件,然后可以使用 MSDeploy 将这些文件导入到 IIS 中。

我想创建一个某种类型的安装项目,它将打包这些 sql 和 zip 文件输出并为我构建一个安装程序。该安装程序只需将文件复制到特定文件夹即可。

我尝试创建一个安装项目,然后将网络和数据库项目的项目输出添加到其中,但似乎没有办法添加 sql/website.zip 文件。

如何创建一个安装项目来聚合这些输出 sql 和网站 zip 文件?

I am using Visual Studio 2010. I have a solution that has 2 SqlServer Database projects and Web application projects. When I build each of these projects they generate SQL scripts and zip files for websites that can then be imported in IIS with MSDeploy.

I want to create a setup project of some sort that will package these sql and zip file outputs and build an installer for me. This installer just needs to copy the files to a particular folder.

I tried creating a Setup project and then adding project outputs from the web and database projects to it, but there doesn't seem to be a way to add the sql/website.zip files instead.

How can I create a setup project that will aggregate these output sql and website zip files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文