zip创建的文件结构

zip创建的文件结构

本文介绍了Visual Studio部署程序包-更改.zip创建的文件结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切正常,但我想改善.zip产生的目录结构.

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

当我创建一个部署程序包时,我会在一个自定义目录中创建它,该目录可以正常工作,但是它创建的.zip格式为:

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

只有在packageTmp目录中,我才能找到所需的文件!

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

是否有一种方法可以使创建的zip文件不包含所有这些空目录?

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

推荐答案

我也从不了解文件夹结构.通过使用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. :)

这篇关于Visual Studio部署程序包-更改.zip创建的文件结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:55