将空目录发布到VS2010 Web项目中的Web应用程序

我经常需要发布一个保留目录树的Web项目,即使目录为空,例如,用于保存上载文件的目录。
如果我使用VS2010 publish命令发布应用程序,则不会在Web服务器的远程文件系统上创建空目录。

Often I need to publish a web project preserving a directory tree even if the directories are empty, for example, directories to hold uploaded files. If I publish my app using the VS2010 publish command, the empty directories are not created on the remote filesystem, on the web server.

有没有办法强制VS在目标目录上创建某些文件夹(尽管是空的)?
谢谢!

Is there a way to force VS to create certain folders, albeit empty, on the target directory? thanks!



 1 条回答