I'm trying to figure out how to get mixed-language support working in Visual Studio 2008. In my app_code folder, I've created two subfolders (CS, VB), and added the following to the web.config file:
<compilation>
<codeSubDirectories>
<add directoryName="VB" />
<add directoryName="CS" />
</codeSubDirectories>
</compilation>
The main application is a VB.NET Web application (with a .vbproj file).
Any time I attempt to open a C# file from the app_code\cs folder, it treats the file as Visual Basic for compilation and syntax checking purposes. It still tries to build the classes in the CS folder as though they were Visual Basic. (The extension on these classes is, indeed, .cs.)
Any help figuring this out would be greatly appreciated.