473,396 Members | 2,106 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,396 software developers and data experts.

Compiling directories in web project...

In vs.net 2005 you can build the entire website, entire solution or a single
page. The project I am working on has more than 1000 pages spread over 50-60
directories. We work on one or two of the directories most of the time.

When an external dependency is changed (say a function in business layer),
we have to compile the entire web project, which takes a lot of time because
vs.net compiles all 60 directories.

What is need is an option to just compile one directory (to minimize the
development time).

Is this possible? I could not find an option to do this in vs.net 2005.
Also, if it is not directly possible, is it possible to do it by writing a
macro or build script? Any pointers will be appreciated.

Thanks
--
-jojobar
Feb 4 '06 #1
9 1344
jojobar,

The main .dll file of the site contains all the codebehind for each page. So
I don't think this is possible. However if you were to use a modular
usercontrol system such as the one .net nuke uses then you could update and
install those modules. The way the DotNetNuke site works is probably the
closest to what you describe: www.dotnetnuke.com

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"jojobar" <jo*****@nospam.nospam> wrote in message
news:0A**********************************@microsof t.com...
In vs.net 2005 you can build the entire website, entire solution or a
single
page. The project I am working on has more than 1000 pages spread over
50-60
directories. We work on one or two of the directories most of the time.

When an external dependency is changed (say a function in business layer),
we have to compile the entire web project, which takes a lot of time
because
vs.net compiles all 60 directories.

What is need is an option to just compile one directory (to minimize the
development time).

Is this possible? I could not find an option to do this in vs.net 2005.
Also, if it is not directly possible, is it possible to do it by writing a
macro or build script? Any pointers will be appreciated.

Thanks
--
-jojobar

Feb 5 '06 #2
Be sure to check out Rick Strahl's free West Wind ASP.NET 2.0 Compiler
Utility

http://www.west-wind.com/tools/aspnetcompiler.asp

Also, I wonder if MSBuild would help you there if you added the directories
as items?

http://msdn2.microsoft.com/en-us/library/ms171452.aspx

Ken
Microsoft MVP [ASP.NET]

"jojobar" <jo*****@nospam.nospam> wrote in message
news:0A**********************************@microsof t.com...
In vs.net 2005 you can build the entire website, entire solution or a
single
page. The project I am working on has more than 1000 pages spread over
50-60
directories. We work on one or two of the directories most of the time.

When an external dependency is changed (say a function in business layer),
we have to compile the entire web project, which takes a lot of time
because
vs.net compiles all 60 directories.

What is need is an option to just compile one directory (to minimize the
development time).

Is this possible? I could not find an option to do this in vs.net 2005.
Also, if it is not directly possible, is it possible to do it by writing a
macro or build script? Any pointers will be appreciated.

Thanks
--
-jojobar

Feb 5 '06 #3
I am not sure what you mean by the modular user control that dotnetnuke uses.
I just downloaded their source. Their architecture is very modular but the
user controls are all in a folder below the websie.

I tried changing one of their lirary files and then compiled the website
(after initially compiling the solution).

It took about 35 seconds on my 2.4ghz 786MB RAM & 7200 rpm laptop. Maybe my
machine is slow, but I as looking fo making the development cycle fater.
This was a big problem with asp.net 1.1

Thanks for your help.
--
-jojobar
"S. Justin Gengo [MCP]" wrote:
jojobar,

The main .dll file of the site contains all the codebehind for each page. So
I don't think this is possible. However if you were to use a modular
usercontrol system such as the one .net nuke uses then you could update and
install those modules. The way the DotNetNuke site works is probably the
closest to what you describe: www.dotnetnuke.com

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"jojobar" <jo*****@nospam.nospam> wrote in message
news:0A**********************************@microsof t.com...
In vs.net 2005 you can build the entire website, entire solution or a
single
page. The project I am working on has more than 1000 pages spread over
50-60
directories. We work on one or two of the directories most of the time.

When an external dependency is changed (say a function in business layer),
we have to compile the entire web project, which takes a lot of time
because
vs.net compiles all 60 directories.

What is need is an option to just compile one directory (to minimize the
development time).

Is this possible? I could not find an option to do this in vs.net 2005.
Also, if it is not directly possible, is it possible to do it by writing a
macro or build script? Any pointers will be appreciated.

Thanks
--
-jojobar


Feb 5 '06 #4
jojobar,

You can build just the module and then deploy the module's .dll file (and
..aspx file depending on your compile choice). There is no need for the
entire solution to be built if you are just adding a module or making a
change to an included module. The neat thing about DotNetNuke is that
modules are their own separate "entities" which can be created and installed
separately from any given instance of DotNetNuke itself. This means separate
modules may be worked on and then installed on a production site without
compiling everything.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"jojobar" <jo*****@nospam.nospam> wrote in message
news:C8**********************************@microsof t.com...
I am not sure what you mean by the modular user control that dotnetnuke
uses.
I just downloaded their source. Their architecture is very modular but the
user controls are all in a folder below the websie.

I tried changing one of their lirary files and then compiled the website
(after initially compiling the solution).

It took about 35 seconds on my 2.4ghz 786MB RAM & 7200 rpm laptop. Maybe
my
machine is slow, but I as looking fo making the development cycle fater.
This was a big problem with asp.net 1.1

Thanks for your help.
--
-jojobar
"S. Justin Gengo [MCP]" wrote:
jojobar,

The main .dll file of the site contains all the codebehind for each page.
So
I don't think this is possible. However if you were to use a modular
usercontrol system such as the one .net nuke uses then you could update
and
install those modules. The way the DotNetNuke site works is probably the
closest to what you describe: www.dotnetnuke.com

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"jojobar" <jo*****@nospam.nospam> wrote in message
news:0A**********************************@microsof t.com...
> In vs.net 2005 you can build the entire website, entire solution or a
> single
> page. The project I am working on has more than 1000 pages spread over
> 50-60
> directories. We work on one or two of the directories most of the time.
>
> When an external dependency is changed (say a function in business
> layer),
> we have to compile the entire web project, which takes a lot of time
> because
> vs.net compiles all 60 directories.
>
> What is need is an option to just compile one directory (to minimize
> the
> development time).
>
> Is this possible? I could not find an option to do this in vs.net 2005.
> Also, if it is not directly possible, is it possible to do it by
> writing a
> macro or build script? Any pointers will be appreciated.
>
> Thanks
> --
> -jojobar


Feb 5 '06 #5
Hi jojobar,

Thanks for posting!

As Ken mentioned, I think the West Wind ASP.NET 2.0 Compiler Utility is
appropriate for current demand.

Otherwise, if you want to make the build flexible, I suggest you use the
MSBuild for ASP.NET 2.0. You can create your own task for the requirement.
http://msdn2.microsoft.com/en-us/library/ms171452.aspx

I hope the information will be helpful.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 6 '06 #6
Thanks for the comment. I believe all these suggestions are pretty good when
you are deploying the solution. However, if you are going through the
iterative cycles of edit/compile/run, these solutions (I suspect) may not
work very well.

I was wondering if smart C# compiler can be designed that would parse the
code and not compile the code if not needed (even though the library is
referenced)!

Finally I stumbled across an article by Scott Guthrie, that explains how you
can make a directory hidden so that it does not show up in vs.net (and hence
does not compile). So I decided to go with that idea and compile less! even
though it is not an ideal solution for me.
--
-jojobar
""Yuan Ren[MSFT]"" wrote:
Hi jojobar,

Thanks for posting!

As Ken mentioned, I think the West Wind ASP.NET 2.0 Compiler Utility is
appropriate for current demand.

Otherwise, if you want to make the build flexible, I suggest you use the
MSBuild for ASP.NET 2.0. You can create your own task for the requirement.
http://msdn2.microsoft.com/en-us/library/ms171452.aspx

I hope the information will be helpful.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 14 '06 #7
Hi Jojo,

Thanks for your reply!

From your description, I think the problem is caused that all directories
are in the same project. This means that you have a single project for the
current application. Based on my experience, I think you can try to
separate the project to many parts. For example, the business objects layer
in one project and data access layer in another. So, if you have some
changed in the business objects layer, you just rebuild the business
project. I think this is an easy way to build a complex solution. Thanks
for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 15 '06 #8
Hello Yuan,

That is not true. Let me explain our configuration a little bit:

We have separate projects as follows:

Solution
Project: BusinessLayer
Project: DBLayer
Project: Utils
Website:
Folder: App_Code
Folder: App_Themes
Folder: App1 (500+ files in many subfolders)
Folder: App2 (250+ files in many subfolders)
Folder: App3 (500+ files in many subfolders)
Folder: App4 (200+ files in many subfolders)
....{{ more applications in various folders... a total of 3000 files)
web.config

Note that each apps share the same web.config, so they are in the same
website. Also they depend on the other projects like BusinessLayer, DBLayer
etc.

In asp.net 1.1 we had separate projects (not website) for each App1, App2
etc. So when we were fixing bugs (say in App1), we just needed to compile
App1.

In asp.net 2.0, all the apps have to be in under the same web project (to
facilitate sharing of web.config, skins etc). Now when a developer changes a
small function in that dblayer that is related to app1 and does a build
website, the asp.net 2.0 compilier cannot figure out that folder app1 is only
dependent on this function so it compiles all the apps, a total of 3000 files
(it takes more than 2 and half minutes on my latop which is 3.4Ghz cpu and
has 1GB of RAM and 7200rpm drive).

I understand that if only the apps files change, the compilation is very
fast. however, in the development cycle, developers also change library
projects as well as apps.

I think this is a limitation, it would be nice if MS provided a folder
compile in addition to file compile and website compile for a vs.net 2005
website. Otherwise it would be good to know if some hack exists.

Some people on this thread has suggested I use msbuild for this. I do want
to stay in the development environment of vs.net 2005 and take advantage of
it. I understand msbuild is good for deployment options.

I hope I explained my problem well, I think all the advantages of 2.0
motivated us to migrate our program. This is however a big bottleneck that
needs addressing. Any other ideas/hack etc?
--
-jojobar
""Yuan Ren[MSFT]"" wrote:
Hi Jojo,

Thanks for your reply!

From your description, I think the problem is caused that all directories
are in the same project. This means that you have a single project for the
current application. Based on my experience, I think you can try to
separate the project to many parts. For example, the business objects layer
in one project and data access layer in another. So, if you have some
changed in the business objects layer, you just rebuild the business
project. I think this is an easy way to build a complex solution. Thanks
for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 23 '06 #9
Hi JoJo,

Thanks for your reply!

I do understand your issue. As your appreciated idea, the issue is a
product limitation because the new compilation mode in ASP.NET 2.0. If you
publish the website, I think this will take more time to approach this.
However, I recommend you submit a feedback for the current issue. You can
do this by accessing the link below:
https://support.microsoft.com/common...14&showpage=1&
WS=mscom&url=http%3a%2f%2fwww.microsoft.com%2f

Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were
updated on February 14, 2006. Please complete a re-registration process
by entering the secure code mmpng06 when prompted. Once you have
entered the secure code mmpng06, you will be able to update your profile
and access the partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Feb 24 '06 #10

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

Similar topics

3
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again...
1
by: endo55 | last post by:
Hi I've got the following errors when trying to compile a program cvision error LNK2001: unresolved external symbol _IID_IGraphBuilde cvision error LNK2001: unresolved external symbo...
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
2
by: VicVic | last post by:
Dear Experts, I have a project, built long time ago, using VC++. Now i want to compile it in Microsoft Visual Studio .Net 2003. When i tried to open the project file(xxx.dsw), i was asked:...
1
by: Mike Hutton | last post by:
I need some help. I am trying to set up our development environment so as to make life easy for my fellow developers (none of whom have used ASP.NET or VS.NET before). We are developing our...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
6
by: tony | last post by:
Hello! I have several projects where each one build a library.(class library or window control library). Now I get some strange compile error when building the *.exe file and doesn't...
2
by: soren.andersen | last post by:
Hello out there :-) I'm new to c++, coming from Java, and trying to learn the basics of the language and all that, basically just for fun. :-) So, when once I played around with c++ a bit i...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
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
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
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...
0
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.