Saturday, February 23, 2008

Using Both VB AND C# in the same .NET Project/Website

The following article discusses this issue and how to use both Visual Basic and C# in the same .NET Project or Website.

http://www.timheuer.com/blog/archive/2007/02/28/14002.aspx

Basically, add one folder for VB (e.g. "VBCode") and one for C# (e.g "CSCode") and then add this to your web.config in the compilation section

<compilation debug="false">
    <codeSubDirectories>
        <add directoryName="VBCode"/>
        <add directoryName="CSCode"/>
    </codeSubDirectories>
</compilation>

No comments: