Visual Studio 部署包 - 更改 .zip 创建的文件结构?

发布于 2024-09-03 08:27:40 字数 300 浏览 5 评论 0原文

一切都按预期工作,但我想改进 .zip 生成的目录结构。

当我创建部署包时,我让它在一个自定义目录中创建,该目录工作正常,但它创建的 .zip 的结构如下:

content/c_c/users/pcName/documents/VS2010/Projects/ProjectName/obj/release/package/packageTmp

只有在 packageTmp 目录中,我才能访问我想要的文件!

有没有办法让创建的 zip 不包含所有这些空目录?

Everything works as expected but I would like to improve the directory structure that the .zip produces.

When I create a deployment package I have it create in a custom directory which works fine but the .zip it creates is in the structure of:

content/c_c/users/pcName/documents/VS2010/Projects/ProjectName/obj/release/package/packageTmp

Only in the packageTmp directory do I get to the files I want!

Is there a way for the created zip to not include all of those empty directories?

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

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

发布评论

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

评论(1

濫情▎り 2024-09-10 08:27:40

我也从来不理解文件夹结构。通过使用 msdeploy 发布站点,它会使用该文件夹结构一次部署多个站点/资产。看着包装本身很烦人,但它确实“有效”。只需使用 msdeploy 来实际部署包,您不必查看疯狂的文件夹结构。 :)

I never understood the folder structure either. By using msdeploy to publish the site it uses that folder structure to deploy multiple sites/assets at once. It's annoying when looking at the package itself but it does "work". Just use msdeploy to actually deploy the package and you don't have to look at the crazy folder structure. :)

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