Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Getting started with scripting automated builds

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Quimbly - 16 Oct 2007 16:48 GMT
I'm trying to find some good resources on how to script a VS build.  Our
solution is fairly large, and includes a WinForm app, web services, a couple
of websites, etc.  I'm trying to find a way to automate the build and partial
builds by scripting them.  

So far, I've been trying to simply grab the commands in the Output window
and using those.  However, it appears that not ALL of the steps are included
in the build output, particularly things like website building.  

We're using VS 2005 and are not using Team System.  

Does anyone have some suggestions about how I can get started with this task
and where to look for some good info?
Quimbly - 16 Oct 2007 19:29 GMT
After looking around a bit, I've found that Team System automated builds is
not an option, and NAnt appears to be overly complicated for what I want to
do.  I simply want to compile the solution or projects in the solution, in
either release or debug modes, or deploy a project, after changing a few
project properties.

As far as I can tell, using devenv.exe and various command-line parameters
should work for this.  One outstanding issue I'm still grappling with,
however, is:

How do I build and deploy a Website that is part of my solution?  All of the
examples I've seen for compiling one project of a solution require a .csproj
file to be specified, and of course, a Website "project" of a solution
doesn't have an associated .csproj file.  So, how is it done?
Mads Bondo Dydensborg - 17 Oct 2007 11:07 GMT
> I'm trying to find some good resources on how to script a VS build.  Our
> solution is fairly large, and includes a WinForm app, web services, a
> couple
> of websites, etc.  I'm trying to find a way to automate the build and
> partial builds by scripting them.

If you are using VS 2005, it should be using msbuild behind the scene.

If you project file is called something.somethingproj, try, on a command
line:

msbuild something.somethingproj

Check the docs for msbuild for more options.

Regards,

Mads

Signature

Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77
34

Tigger - 17 Oct 2007 11:17 GMT
>> I'm trying to find some good resources on how to script a VS build.  Our
>> solution is fairly large, and includes a WinForm app, web services, a
[quoted text clipped - 14 lines]
>
> Mads

Another option is NAnt

http://nant.sourceforge.net/

Tigger
Rad [Visual C# MVP] - 18 Oct 2007 10:52 GMT
>I'm trying to find some good resources on how to script a VS build.  Our
>solution is fairly large, and includes a WinForm app, web services, a couple
[quoted text clipped - 9 lines]
>Does anyone have some suggestions about how I can get started with this task
>and where to look for some good info?

Take a look at NAnt http://nant.sourceforge.net/ ... this should be
able to do what you're looking for

--
http://bytes.thinkersroom.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.