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

Getting started with scripting automated builds

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?
Oct 16 '07 #1
3 1287
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?

Oct 16 '07 #2
Quimbly wrote:
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

--
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
Oct 17 '07 #3
On Tue, 16 Oct 2007 08:48:25 -0700, Quimbly
<Qu*****@discussions.microsoft.comwrote:
>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?
Take a look at NAnt http://nant.sourceforge.net/ ... this should be
able to do what you're looking for

--
http://bytes.thinkersroom.com
Oct 18 '07 #4

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

Similar topics

84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
3
by: jrett | last post by:
I've got a source tree with over 100 projects, some depending on others and I'd like to set this up on an automated nightly build, or where devs can do private builds of the entire source tree to...
0
by: Jordan S. | last post by:
Okay so I've finally "seen the Light" about writing automated unit tests ahead of time. Question: What is a very simple approach that I can use to setting up automated unit tests, considering...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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.