TIP: Developing ASP.NET 2.0 applications simultaneously with both C# and VB.NET

If the code (say some classes) is written in C# and if the application is being developed in Visual Basic.NET, you can create a separate folder under the App_Code folder. The folder must be added as a code subdirectory in the web.config file as shown here:

<compilation debug="true" strict="false" explicit="true">
  <codeSubDirectories>
    <add directoryName="ProfileProvider" />
  </codeSubDirectories>
</compilation>

 

By adding the folder as a code subdirectory, all C# files in the folder will be compiled separately from the rest of the Web application project. At run time, two DLLs will be generated in the ASP.NET temporary folder for the application.

Enjoy,

Jag

About Jag

.NET Architect
This entry was posted in ASP.NET and tagged , . Bookmark the permalink.