469,917 Members | 1,677 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

.Net 2.0 b2: Renaming App_Code.dll

AZ
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 friendly name, such
as ProjectName.dll or something. I didnt see any parameters to be able to
choose the output assembly name.
Nov 19 '05 #1
3 1779
App_Code.dll will contain just the code from underneath the App_Code
directory.

A webform and it's code-behind will now compile into the same
assembly, and that assembly will be a different assembly than
App_Code.dll.

Any non-trivial ASP.NET 2 site will produce more than a single
assembly, which is why they don't have the output name as an option.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 10 Aug 2005 14:27:57 -0700, "AZ"
<AZ@discussions.microsoft.com> wrote:
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 friendly name, such
as ProjectName.dll or something. I didnt see any parameters to be able to
choose the output assembly name.


Nov 19 '05 #2
AZ
When I precompile my VS2005 Web Service the only assembly created for me in
App_Code.dll. Disassembling it, it does contain my service's code-behind.
Since all code will likely sit in App_Code directory & it gets all compiled
into App_Code.dll, why not have the ability to name the assembly
appropriately. This is not very different from version 1.1 where you could
choose the assembly name.

"Scott Allen" wrote:
App_Code.dll will contain just the code from underneath the App_Code
directory.

A webform and it's code-behind will now compile into the same
assembly, and that assembly will be a different assembly than
App_Code.dll.

Any non-trivial ASP.NET 2 site will produce more than a single
assembly, which is why they don't have the output name as an option.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 10 Aug 2005 14:27:57 -0700, "AZ"
<AZ@discussions.microsoft.com> wrote:
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 friendly name, such
as ProjectName.dll or something. I didnt see any parameters to be able to
choose the output assembly name.


Nov 19 '05 #3
Well, the purpose of App_Code is to give web projects a well known
location where you can drop in source code files and let the runtime
compile them on the fly.

It's assumed all the webforms and user controls will want to use code
from the well known location, so the resulting assembly needs a well
known name for the runtime to establish a reference.

If you want a little more control over the situation, you'll have to
use a class library for class files.

Is this an asmx web form you migrated from 1.1? I'd think the
migration wizard would have migrated the code-behind to a partial
class.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 11 Aug 2005 08:32:11 -0700, "AZ"
<AZ@discussions.microsoft.com> wrote:
When I precompile my VS2005 Web Service the only assembly created for me in
App_Code.dll. Disassembling it, it does contain my service's code-behind.
Since all code will likely sit in App_Code directory & it gets all compiled
into App_Code.dll, why not have the ability to name the assembly
appropriately. This is not very different from version 1.1 where you could
choose the assembly name.


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ed Staffin | last post: by
4 posts views Thread by Martin Simard | 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 Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.