Navigation

Search

Categories

On this page

Mixing Different Languages in the App_Code Folder

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 112
This Year: 50
This Month: 0
This Week: 0
Comments: 0

Sign In

 Monday, April 14, 2008
Monday, April 14, 2008 2:00:29 PM (Eastern Standard Time, UTC-05:00) ( )

 

As long as all of the components in the App_Code folder are in the same language then you don't have to do anything special. However, if you want place components written in different languages - for example C# and VB.NET, then you need to place components in different languages in different subfolders.  You also need to modify the web.config file to recognize the different subfolders.

Web.Config

<configuration>
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="VBCode" />
<add directoryName="CSCode" />
</ codeSubDirectories>
</ configuration>
</ system.web>
</ compilation>