469,591 Members | 2,086 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,591 developers. It's quick & easy.

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 4581
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by AZ | last post: by
reply views Thread by Ed Staffin | last post: by
2 posts views Thread by pradeep_TP | last post: by
9 posts views Thread by rn5a | last post: by
reply views Thread by perspolis | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.