Larsenal
Larsenal

Reputation: 51146

Can you rename the App_Code folder?

I realize this would violate convention, but I'm curious to know if you can do this through configuration.

Edit: I understand why I wouldn't want to do this. BUT, I do want to understand the internals of this time of project.

Upvotes: 1

Views: 1169

Answers (4)

Larsenal
Larsenal

Reputation: 51146

Reflector tells me that System.Web.HttpRuntime contains...

internal const string CodeDirectoryName = "App_Code";

So the answer is no.

Upvotes: 1

JaredPar
JaredPar

Reputation: 754525

No you cannot rename this folder and have it actually contain executable code. The web project system is hard coded to look for code in this folder and will not consider any other folder for raw code.

Upvotes: 2

Corey Trager
Corey Trager

Reputation: 23123

Google "Convention over Configuration"

Upvotes: 0

Oscar Cabrero
Oscar Cabrero

Reputation: 4169

I dont think this is posible, but why do you need to change it?

Upvotes: 0

Related Questions