ASP 4.5 中的 App_Start 文件夹仅在 WebApplications 项目中? [英] App_Start Folder in ASP 4.5 only in WebApplications Projects?

查看:19
本文介绍了ASP 4.5 中的 App_Start 文件夹仅在 WebApplications 项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已转换为 .NET 4.5 的网站项目.我想使用我看到添加到 App_Start 目录中的 AuthConfig.几个问题.

I have a Website Project I've converted to .NET 4.5. I'd like to use the AuthConfig that I've seen added to the App_Start directory. A couple of questions.

App_Start 目录是否仅适用于 Web 应用程序项目?当我尝试添加现有的 asp.net 文件夹时,我没有将其视为要添加的选项.

Is the App_Start directory only available for Web Application Projects?, When I try to add an existing asp.net folder I don't see it as an option to be added.

其次,如果是这种情况,我可以在我的网站项目中的任何位置使用 AuthConfig 文件吗?

Secondly, Can I just an AuthConfig file anywhere in my website project if that is the case?

推荐答案

App_Start 没有什么特别之处,它只是一个文件夹.特殊之处在于它的使用方式,这特定于 WebActivator 框架,它是您可以安装的 NuGet 包.App_Start 和 WebActivator 并非特定于 .NET 4.5,但它们确实需要 .net 4(这意味着 VS 2010 或 2012)

There is nothing special about App_Start, it's just a folder. What's special is how it's used, and that's specific to the WebActivator framework, which is a NuGet package you can install. App_Start and WebActivator are not specific to .NET 4.5, but they do require .net 4 (which means VS 2010 or 2012)

参见 http://blog.davidebbo.com/2011/02/appstart-folder-convention-for-nuget.html

这篇关于ASP 4.5 中的 App_Start 文件夹仅在 WebApplications 项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆