Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Commandline build script for .NET project


Commandline build script for .NET project

Reply
  #1 (permalink)  
Old 12-22-04, 08:13 AM
snkar snkar is offline
New Member
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Commandline build script for .NET project

Hi Guys .... I am developing an ASP.NET application with C# using Visual Studio .NET 2003. I have a single solution which contains individual projects for the Data layer, Data Access layer, Manager layer, Utility layer, the web application itself, the setup project(for installer) and a couple of other helper projects. I created the project as a blank solution file and went on adding the individual projects. Now I have delivered my client with the full source code and he can open the solution and compile the full project. But what he wants is a commandline script(possibly a .BAT file) which when invoked from the command line prompt will compile all the projects and place all the assemblies(component dlls) to the appropriate folder(under the bin subfolder of the web application folder). So essentially what he is looking for is to have a single .BAT file which will do all the compiling and building task that I am doing through the IDE. Now I am relatively new to .NET and I really
have no idea of how this can be achieved. I know that individual .NET projects can be compiled from the command line using the command line version of C# compiler(I have never tried it though). But in my case, since the solution file contains other projects, they have dependencies on each other. For example my Data Access layer depends on the Data layer(refernces the Data layer dll), the Utility layer depends on both the Data layer and the Data Access Layer and so on for the other projects, the maximum number of dependencies being for the web application project. So there has to be a proper build order for the projects. The projects should be build in the ascending order of dependencies, the project with no dependency being built first. I can specify the build order for the projects in VS .NET IDE but I have no idea of how this can be done through a command line script file. Can anyone help me with this. Any URL which discusses this issue or sample code will be extremely helpful. I am a little pressed on time here. Need some help as sson as possible. Thanks folks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-17-05, 08:59 AM
igor.kudela igor.kudela is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
maybe this would help ,pretty rad tool and very powerfull
http://nant.sourceforge.net/
i use it
__________________
Igor Kudela
http://netpublisher.fragmentsolutions.com
Affordable CMS solution
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
New Script bmfdx12 General Advertisements 0 08-23-04 12:07 AM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 01:12 AM
Looking for a script to collect stats for members & teams in a DC project. amdxborg Script Requests 0 02-26-04 05:07 PM
a self build website script neworleans rookie Script Requests 2 02-23-04 06:19 PM


All times are GMT -5. The time now is 09:16 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.