且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-10-20 20:18:52

不,这不可能,恐怕我们遇到了同样的问题.如果希望预编译工具生成这些空文件夹,则需要在每个空目录中创建一个 placeholder.txt 文件.如果您无法创建一个命令行应用程序,它将在您的构建后事件中创建文件夹(但前提是您使用的是网络应用程序项目而不是网站项目).

No this is not possible I'm afraid we had the same problem. You need to create a placeholder.txt file in each empty directory if you want the precompilation tool to generate these empty folders. Failing that you can create a command line app that will create the folders in your post build events (but only if you are using web application project not web site project).

希望这会有所帮助.