您可以移动(或复制)“特殊”吗?子目录中的 .Net 文件夹 (App_*)?
子目录中(而不是根目录中)是否可以有额外的 .Net“特殊”文件夹(App_Code、App_Themes 等)?
我正在与 CMS 集成,该 CMS 会在根目录中转储大量内容。我想将所有内容保存在一个子文件夹中,因为这将大大减轻我的 SVN 和部署负担。就这样,我必须从所有的东西中挑选出来,找出什么是我的,什么是他们的,选择性地提交和忽略——这大约需要一个小时。
我确实可以将所有 Web 表单放在一个文件夹中。但我需要处理 App_Code 中的类以及 App_Themes 中的图像和样式表。
那么,是否可以在子目录中添加额外 App_Code 和 App_Themes,或者这些仅限于根目录?
(是的,我知道如何创建一个应用程序,但这行不通。我需要在与站点根目录中的所有内容相同的上下文中运行,因此它实际上并不是一个单独的概念应用程序。)
It is possible to have extra .Net "special" folders (App_Code, App_Themes, etc.) inside of a subdirectory, rather than in the root?
I am integrating with a CMS that dumps an enormous amount of stuff in the root. I would like to keep all my stuff in a single subfolder, as this will greatly ease my SVN and deployment burden. As it sits, I have to pick through all the stuff to figure out what's mine and what's theirs, selectively committing and ignoring -- it takes about an hour.
I can sure put all my Web forms in a folder. But I have classes in the App_Code and images and stylesheets in App_Themes that I need to deal with.
So, is there anyway to have an additional App_Code and App_Themes in a subdirectory, or are these limited to the root only?
(And, yes, I know about creating an Appication, but this won't work. I need to run in the same context as everything in the root of the site, so it's not really a separate, conceptual application.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不可以,每个 ASP.NET 应用程序只能有一个 App_Code 文件夹。
No, you can only have one App_Code folder per ASP.NET application.