Hello Friends,

in this article i will give you solution which i was finding since 1 year.

normally when we crate any web application project we use the app_code folder to generate single assembly in which all the files in the App_Code folder must be in the same programming language.

but sometimes i feel that if in some complex things i need c# code file and some times i need that i want vb file for the string manupulation and all that so can i place both the languages in same app_code folder.

here is the solution for this complex question

1) Create two folders in App_Code folder name as “CSCODE” and “VBCODE” place c# files in the cscode folder abd vb code files in vbcode folder.

2)add below code in the wb.config file

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

Now please built the website.

Enjoy the code
please reply me on the same post if it will works for you.

Tags: ,

This entry was posted on Monday, July 20th, 2009 at 3:06 am and is filed under .Net Emperor. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment