Visual Studio 部署包 - 更改 .zip 创建的文件结构?
一切都按预期工作,但我想改进 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也从来不理解文件夹结构。通过使用 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. :)