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

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

问题描述

我有一个网站项目我已经转换为.NET 4.5。我想用AuthConfig,我已经看到添加到App_Start目录。一对夫妇的问题。

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应用程序项目?当我尝试添加exsisting asp.net文件夹,我不认为这是无以复加的选项。

Is the App_Start directory only available for Web Application Projects?, When I try to add an exsisting 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

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

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