部署/发布多个 .NET Core 控制台应用程序

发布于 2025-01-14 01:02:29 字数 404 浏览 2 评论 0原文

我们有许多 .NET Core 控制台应用程序,它们都共享一些小型内部库。我们希望将它们作为一个捆绑包与所有内部库一起发布到单个 XCOPYable 文件夹中。 Microsoft 目前没有解决方案(请参阅 https://developercommunity.visualstudio.com/t/publishing-multiple-net-core-applications-in-a-sin/1152838)。我想知道是否有人能指导我们如何实现这一目标,直到 Microsoft 提供解决方案。

We have a number of .NET core console applications all sharing some small internal libraries. We would like to publish them as a single bundle with all internal libraries to a single XCOPYable folder. Microsoft currently has no solution for this (see https://developercommunity.visualstudio.com/t/publishing-multiple-net-core-applications-in-a-sin/1152838). I am wondering if someone has a pointer to how we might be able achieve this until there is a solution from Microsoft.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的十字路口 2025-01-21 01:02:29

我最终编写了一个 PowerShell 脚本,该脚本

  1. 构建了应用程序
  2. ,递归地将所有可发布内容复制到临时暂存文件夹中,
  3. 压缩了暂存文件夹以进行部署,
  4. 删除了暂存文件夹,
  5. 清理了构建

,解决了我的问题。但如果有更好的方法,请告诉我。

I ended up writing a PowerShell script that

  1. built the apps
  2. recursively copied all the publishable contents to a temporary staging folder
  3. compressed the staging folder for deployment
  4. deleted the staging folder
  5. cleaned up build

Solves my problem. But if there is a better way out there, please let me know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文