473,288 Members | 1,704 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

Renaming App_Code.dll

Hi all,

Is there a way to rename the App_Code.dll generated from the code that
belongs to the App_Code folder?

We are developping several web applications that we are merging in a single
application on our production server. This works great with the new
compilation model of .NET 2.0, but we have to create a class library for
each web application to have a unique .dll for each app. Each class library
has a unique name since it produces a class_library_name.dll. It would be
nice to rename the App_Code.dll to avoid creating n-applications class
libraries.

Thanks,

Martin
May 18 '06 #1
4 4750
Have you looked at the Web Application Projects ?

http://msdn.microsoft.com/asp.net/re...p/default.aspx

With WAP, all code files within the project are compiled into a single
assembly that is built and persisted in the \bin directory on each compile.

Background info :
http://msdn.microsoft.com/vstudio/de...5/html/WAP.asp

Scott Guthrie's WAP Tutorials are at : http://webproject.scottgu.com/

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Martin Simard" <ms@dotnet.discussions> wrote in message news:ff********************@ulaval.ca...
Hi all,

Is there a way to rename the App_Code.dll generated from the code that belongs to the App_Code
folder?

We are developping several web applications that we are merging in a single application on our
production server. This works great with the new compilation model of .NET 2.0, but we have to
create a class library for each web application to have a unique .dll for each app. Each class
library has a unique name since it produces a class_library_name.dll. It would be nice to rename
the App_Code.dll to avoid creating n-applications class libraries.

Thanks,

Martin

May 18 '06 #2
Yes, I looked at it. But it's getting back to the VS 2003 functionnalities I
think...

We are redesinging our framework, and we are getting advantage of the new
compilation model of VS 2005 to reuse web controls (see:
http://weblogs.asp.net/scottgu/archi...8/423888.aspx). And with
WAP, the "Publish Web Site" option is not available for those kind of
projects. Ok we have a unique DLL for each project but, as far as I know, no
more options to build multiple DLLs for each pages/controls and reuse them
with the created stub files. (Even aspnet_compiler.exe is creating an empty
folder).

If there's a way to have best of both worlds, let me know!

M.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Os**************@TK2MSFTNGP05.phx.gbl...
Have you looked at the Web Application Projects ?

http://msdn.microsoft.com/asp.net/re...p/default.aspx

With WAP, all code files within the project are compiled into a single
assembly that is built and persisted in the \bin directory on each
compile.

Background info :
http://msdn.microsoft.com/vstudio/de...5/html/WAP.asp

Scott Guthrie's WAP Tutorials are at : http://webproject.scottgu.com/

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Martin Simard" <ms@dotnet.discussions> wrote in message
news:ff********************@ulaval.ca...
Hi all,

Is there a way to rename the App_Code.dll generated from the code that
belongs to the App_Code folder?

We are developping several web applications that we are merging in a
single application on our production server. This works great with the
new compilation model of .NET 2.0, but we have to create a class library
for each web application to have a unique .dll for each app. Each class
library has a unique name since it produces a class_library_name.dll. It
would be nice to rename the App_Code.dll to avoid creating n-applications
class libraries.

Thanks,

Martin


May 19 '06 #3
I'm in a similar boat. We have several webservices written. Most are
in vb but on is in C#. There is way too much code to rewrite them all
in one language. I can't have different webservices written in
different langauges (although they're all .Net 2.0). Where is the
specialty of the CLR here? Seems to me like they took down the
"feature" of interactive languages.

May 26 '06 #4
You are suffering from a lack of research into how the .Net Framework actually works.

You may have missed the option to use different .net languages in the same web application,
by differentiating the source code languages in their own App_Code subdirectories.

By default, the App_Code directory can only contain files in the same language.

However, you may partition the App_Code directory into subdirectories
(each containing files of the same language) in order to contain multiple
languages under the App_Code directory.

To do this, you need to register each subdirectory in the Web.config file for the application.

<configuration>
<system.web>
<compilation>
<codeSubDirectories>
<add directoryName="CSharpSubdirectory"/>
<add directoryName="VBSubdirectory"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>

The

ApplicationName\App_Code\CSharpSubdirectory
and the
ApplicationName\App_Code\VBSubdirectory

must exist and have only files in each of those languages.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Phuff" <pc*****@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I'm in a similar boat. We have several webservices written. Most are
in vb but on is in C#. There is way too much code to rewrite them all
in one language. I can't have different webservices written in
different langauges (although they're all .Net 2.0). Where is the
specialty of the CLR here? Seems to me like they took down the
"feature" of interactive languages.


May 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: AZ | last post by:
During the Pre-compile process of an ASP.Net 2.0 app, it compiles the code-behind & optionally the presentation files into an assembly named App_Code.dll. Can that not be renamed to a more project...
11
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site...
5
by: Jay Douglas | last post by:
I have a set of pages that inherit from a base class in the App_Code folder. The class looks something like: public class MyBaseClass : System.Web.UI.Page In various stages of the life cycle I...
2
by: walter | last post by:
Hi, when I add a new page in my asp.net 2 project and put some controls there, everything works fine until I move the code behind into App_Code folder.--When I compile , it tells me that control...
0
by: Ed Staffin | last post by:
Hi, I have developed a web service for use in WSS. In Vstudio 2005 I publish the website to a local directory and in the bin directory is the dll. It's name is always App_Code.dll. Amongst other...
2
by: pradeep_TP | last post by:
Hello, I am trying to use APP_CODE folder for all my class files under VS 2005. After adding APP_CODE in the solution explorer, I added a new web page by right clicking project and selecting add...
9
by: rn5a | last post by:
Is putting a VB class file in the special directory named App_Code the same as relocating the VB class file from the App_Code directory to another directory & then using the VBC tool, compiling the...
0
by: perspolis | last post by:
Hi all I want to rename App_Code folder when creating WebService project in VS2005. but when I rename it it gives me an error.. because I want to have a dll name for instance app_code1.dll when...
5
by: Randy | last post by:
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.