473,804 Members | 3,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling *code behind* into multiple DLLs ?

Hi all,

I'm currently upgrading a 1.1 application. We were using a command file to
invoke the command line compiler to that we have the code behind compiled
into multiple DLLs (to be able to deploy one "part" of the site while
working on another, this is an intranet that contains related but somewhat
independant "modules").

I first thought it was possible in 2.0 but it seems now that actually this
is only true for ASPX files and that code behind files are still compiled
into a single assembly...

Is this something available out of the box (possibly using the web
deployment addin ?) or do I still need to customize the build process if I
want to compile the code behind into multiple DLLs ?

For now the best option I see would be to hand edit an msbuild file...

Thanks in advance for any advice.

(sorry if doubled post but I don't see my first attempt)
Sep 9 '08 #1
3 2039
Hello Patrice" http:www.chez.com/scribe/,

What type of project are you using?! For the "Web Site" project, not "Web
application" VS 2005 provides the new complilation into multiple assemblies
by default. Specific asp.net folders and contorls will be outputed into separate
dlls

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PHi all,
P>
PI'm currently upgrading a 1.1 application. We were using a command
Pfile to invoke the command line compiler to that we have the code
Pbehind compiled into multiple DLLs (to be able to deploy one "part"
Pof the site while working on another, this is an intranet that
Pcontains related but somewhat independant "modules").
P>
PI first thought it was possible in 2.0 but it seems now that actually
Pthis is only true for ASPX files and that code behind files are still
Pcompiled into a single assembly...
P>
PIs this something available out of the box (possibly using the web
Pdeployment addin ?) or do I still need to customize the build process
Pif I want to compile the code behind into multiple DLLs ?
P>
PFor now the best option I see would be to hand edit an msbuild
Pfile...
P>
PThanks in advance for any advice.
P>
P(sorry if doubled post but I don't see my first attempt)
P>
Sep 9 '08 #2
I'm using the "web application" model (VS 2008) as this is a 1.1 upgrade
plus I used the "Web site" project model for another project and for now it
looks like the "web application" model works better for me...

Is this compilation behavior really tied to the project model used ? Is this
possible to use the "web application" model for development and to invoke
the same commands than for a "web project" model when creating the release
build ?

Else I'll just keep my batch files for 2.0...

Thanks.

--
Patrice

"Michael Nemtsev [MVP]" <ne*****@msn.co ma ecrit dans le message de groupe
de discussion : 90************* *************@m snews.microsoft .com...
Hello Patrice" http:www.chez.com/scribe/,

What type of project are you using?! For the "Web Site" project, not "Web
application" VS 2005 provides the new complilation into multiple
assemblies by default. Specific asp.net folders and contorls will be
outputed into separate dlls

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


Sep 9 '08 #3
Finally I just used my previous batch file all along with aspnet_compiler
and aspnet_merge and it seems to produce the desired output...

I thought 2.0 was able to that including fro WAP but I likely missed it was
just for compiled ASPX pages, not for code behind files...

--
Patrice

"Patrice" <http://www.chez.com/scribe/a écrit dans le message de groupe de
discussion : 2B************* *************** **...icrosof t.com...
I'm using the "web application" model (VS 2008) as this is a 1.1 upgrade
plus I used the "Web site" project model for another project and for now
it looks like the "web application" model works better for me...

Is this compilation behavior really tied to the project model used ? Is
this possible to use the "web application" model for development and to
invoke the same commands than for a "web project" model when creating the
release build ?

Else I'll just keep my batch files for 2.0...

Thanks.

--
Patrice

"Michael Nemtsev [MVP]" <ne*****@msn.co ma ecrit dans le message de
groupe de discussion :
90************* *************@m snews.microsoft .com...
>Hello Patrice" http:www.chez.com/scribe/,

What type of project are you using?! For the "Web Site" project, not "Web
application" VS 2005 provides the new complilation into multiple
assemblies by default. Specific asp.net folders and contorls will be
outputed into separate dlls

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and
we miss it, but that it is too low and we reach it" (c) Michelangelo


Sep 9 '08 #4

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

Similar topics

5
5918
by: Jo Vermeulen | last post by:
Hello, I was wondering if Java supports a feature of C# (or .NET in general), namely compiling code at runtime. This is nice for scripting purposes. Users can script the application in real programming languages (such as C#, VB.NET, ...). This is done using the System.CodeDom.Compiler namespace, if I recall correctly. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCodeDomCompiler.asp
2
2865
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple DLLs and a test application (an .EXE). The .EXE is my startup application. All the DLLs are shared components. This means that they contain a key and are stored in the GAC. When I go to run the test application in the IDE, it will not execute...
3
1144
by: Neil Zanella | last post by:
Hello, I would like to know what the advantages and disadvantages of using on-page scripts versus code-behind are. It seems to me that both accomplish the same thing, so I would like to hear pros and cons. Thanks, Neil
8
1756
by: neilmcguigan | last post by:
I just wanted to list some reasons why I prefer inline code to code-behind. 1. you can fix some bugs more quickly. remote desktop into server, change the aspx file, and she's good to go. I'd say this is one of the major reasons classic ASP became so popular. 2. don't have to upload the large codebehind site DLL to fix one bug. 3. updating the codebehind site DLL restarts the application. fixing
5
1519
by: pedestrian via DotNetMonster.com | last post by:
I'm just beginning to learn ASP.NET 2.0. I wonder what's the reason for using or not using the code behind file? Thanks for replying... -- Regards, Pedestrian, Penang. Message posted via DotNetMonster.com
3
2780
by: Phaitour | last post by:
Hi there, I'm working on developing a large Class Library project that is slowly becoming a shared "framework" library amongst multiple applications. As this shared library grows, I need to start thinking about ways to split this library up. In observing the .net framework, I've noticed that each major branch of the framework (eg. System.Net or System.Data) and even some of the minor branches are split up into individual dlls. When...
1
1882
by: LiveCycle | last post by:
Hi, I'm putting together a project that uses ASP.NET in VS2005. It uses a single master page that is responsible for most of the heavy lifting. About 90% of the 200 pages have the same code-behind, so I implemented all of these pages so they would reference the same code-behind cs file, as follows: <%@ Page Language="C#" MasterPageFile="~/MyMaster.master" AutoEventWireup="true" CodeFile="~/Template.aspx.cs" Inherits="Template"...
8
2211
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the existing code. The options I've considered so far: 1. Create a new MC++ GUI project and add the *.c files to them and mark them with pragma unamanged. However, the /clr option does not compile *.c files, so I rename them to *.cpp, and now they...
4
1164
by: Arejan | last post by:
hi i am a beginner in asp.net , but have experience in vb6 my q is can asp.net source code be compiled and make an exe as done in vb6. so that users cannot manipulate the source. my developing scenario is that which have a lan network ,but later on may be connected to internet....(which is optional)
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.