473,387 Members | 1,536 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,387 software developers and data experts.

.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 1875
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
4
by: Martin Simard | last post by:
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...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.