473,487 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Customize Build Process

I need to customize the build process beyond just selecting which projects
get built in what order.

What I want to happen is when I select "Release"
1: Pop a dialog confirming I want to build (release build takes several
minutes, and I regularly forget to switch back to "debug")
2: Build several projects in a specific order.
3: Run a batch file that checks everything out from VSS (can write the batch
file, just need to call it here)
4: Run another batch file that performs a linking operation from a utility
external to VS. (already have this batch file - again, just need to call it)
5: Run a batch file to check everything back into the safe (again, just
run - will write file)
6: Build the final project (which is an installshield setup project)

All of the searching I've done around "custom actions" seems to be related
to actions within a VS setup project.

Thanks in advance.
Sep 26 '06 #1
1 1648
Hi Matt,

Check out the MSBuild utility:

MSBuild on MSDN:
http://msdn2.microsoft.com/en-us/library/wea2sca5.aspx

That should help to automate some of the build process.

You can write a batch file that kicks off your custom build script. Add the batch file as a custom tool in the VS.NET IDE so that
it appears in the Tools menu.
What I want to happen is when I select "Release"
1: Pop a dialog confirming I want to build (release build takes several minutes, and I regularly forget to switch back to "debug")
AFAIK you'd have to write a custom VS.NET add-in to do this. I think there is an event for when the solution is about to be built,
but I'm not sure if you can cancel it.

I'm not sure if there is an event raised when the configuration changes by selecting "Release", but if there is I think you can then
start the solution build through automation if you handle that event. (You could run your msbuild script at this point instead)
2: Build several projects in a specific order.
Right-mouse click Solution node in Solution Explorer and select "Project Build Order..."
3: Run a batch file that checks everything out from VSS (can write the batch file, just need to call it here)
4: Run another batch file that performs a linking operation from a utility external to VS. (already have this batch file - again,
just need to call it)
5: Run a batch file to check everything back into the safe (again, just run - will write file)
In the property pages for the project that you have set to build last you can add a Post-build event that executes your batch
scripts.
6: Build the final project (which is an installshield setup project)
Maybe you can do that in another batch script, immediately after the ones you stated previously.

--
Dave Sexton
Sep 26 '06 #2

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

Similar topics

14
1861
by: Giovanni Bajo | last post by:
Hello, python24.dll is much bigger than python23.dll. This was discussed already on the newsgroup, see the thread starting here:...
3
2341
by: Mark | last post by:
Hello, What I am trying todo is use .NET serialization to take a Guid property that is an attribute in the XML document and have its output to be the same as...
3
1330
by: gruber | last post by:
Hi, I was wondering if the CREATE DATABASE command uses scripts to create the catalog so that I can customize my database creation on DB2? Thanks Chris
3
1883
by: Jerry Boone | last post by:
I have a development unit running XP Pro and I cannot get it to build a web project without restarting IIS. There errors in the task list are.... ! Could not copy temporary files to the output...
5
1911
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For...
0
1806
by: Ray | last post by:
I am trying to add a "Next >" and "<Prev" button to the pager of my datagrid. I have been able to add the hyperlinks to the pager. I am now trying to determine the correct postback script to...
6
5580
by: Zhenzhong Xu | last post by:
I am using ASP 2.0 and trying to put a image in the web part title bar instead of using a text title. Is there any way to get this done? Thanks in advance. Zhenzhong
0
1097
by: Will Asrari | last post by:
I am creating a web setup project in Visual Studio .NET 2003 and have completed this task successfully. As of now the client who will be receiving this setup package will get the MSI along with a...
14
11758
by: yxq | last post by:
Hello, I want to build the multi-language application with the xml file, how to do? could anyone tell a sample? Thank you
0
7142
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
7181
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
7352
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...
0
5445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3078
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
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 ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
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...

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.