App_Start Folder in ASP 4.5 only in WebApplications Projects?

TreK picture TreK · Jan 9, 2013 · Viewed 51.8k times · Source

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.

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.

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

Answer

Erik Funkenbusch picture Erik Funkenbusch · Jan 9, 2013

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)

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