473,394 Members | 1,266 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,394 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 4761
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.