473,395 Members | 1,554 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,395 software developers and data experts.

how can I execute a batch file during build time ?

With .Net Studio,

I have a solution includes some projects.
I want to execute a batch file during build solution time.
For example,
1'st project is builded.
2'nd project is builded.
" a batch file is executed."
3'rd project is builded.

how can I do this?
how can I include a batch file in the solution?
how can I determine the order in projects and a batch file?

(the projects were written by C# and C++)
Nov 15 '05 #1
4 2457
Hi Carrot,

I don't think that IDE will support this, I guess you have to use a batch
file itself for compiling the projects as well..

Just try it that way and see

Nirosh.

"carrot" <ds****@db.konkuk.ac.kr> wrote in message
news:d7**************************@posting.google.c om...
With .Net Studio,

I have a solution includes some projects.
I want to execute a batch file during build solution time.
For example,
1'st project is builded.
2'nd project is builded.
" a batch file is executed."
3'rd project is builded.

how can I do this?
how can I include a batch file in the solution?
how can I determine the order in projects and a batch file?

(the projects were written by C# and C++)

Nov 15 '05 #2
Hi Carrot,

I don't think that IDE will support this, I guess you have to use a batch
file itself for compiling the projects as well..

Just try it that way and see

Nirosh.

"carrot" <ds****@db.konkuk.ac.kr> wrote in message
news:d7**************************@posting.google.c om...
With .Net Studio,

I have a solution includes some projects.
I want to execute a batch file during build solution time.
For example,
1'st project is builded.
2'nd project is builded.
" a batch file is executed."
3'rd project is builded.

how can I do this?
how can I include a batch file in the solution?
how can I determine the order in projects and a batch file?

(the projects were written by C# and C++)

Nov 15 '05 #3
Hi Carrot,

I don't think that IDE will support this, I guess you have to use a batch
file itself for compiling the projects as well..

Just try it that way and see

Nirosh.

"carrot" <ds****@db.konkuk.ac.kr> wrote in message
news:d7**************************@posting.google.c om...
With .Net Studio,

I have a solution includes some projects.
I want to execute a batch file during build solution time.
For example,
1'st project is builded.
2'nd project is builded.
" a batch file is executed."
3'rd project is builded.

how can I do this?
how can I include a batch file in the solution?
how can I determine the order in projects and a batch file?

(the projects were written by C# and C++)

Nov 15 '05 #4
Take a look at the properties of the project. In the Property Pages dialog,
under Common Properties/Build Events there are two properties of interest:
Pre-build Event Command Line and Post-build Event Command Line.

You can put the path and name of your batch file into the Post-build Event
of 2nd project, or Pre-build Event of the 3rd project. This will execute the
batch file between the builds of 2nd and 3rd projects.

The caveat is that managed web projects do not have build events.

If the 2nd and 3rd projects are web projects, then you can hack around the
problem by creating a dummy project. Create a dependency from the 3rd
project to the dummy project, and from the dummy project to the 2nd project.
This ensures that VS.NET builds the dummy project in between the 2nd and 3rd
projects. Then have the Pre-build or Post-build event of the dummy project
call your batch file.

hth,
Sami
"carrot" <ds****@db.konkuk.ac.kr> wrote in message
news:d7**************************@posting.google.c om...
With .Net Studio,

I have a solution includes some projects.
I want to execute a batch file during build solution time.
For example,
1'st project is builded.
2'nd project is builded.
" a batch file is executed."
3'rd project is builded.

how can I do this?
how can I include a batch file in the solution?
how can I determine the order in projects and a batch file?

(the projects were written by C# and C++)

Nov 15 '05 #5

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

Similar topics

1
by: carrot | last post by:
With .Net Studio, I have a solution includes some projects. I want to execute a batch file during build solution time. For example, 1'st project is builded. 2'nd project is builded. " a batch...
17
by: VM | last post by:
In my Windows app, I'm running a batch process that's composed of a FOR loop that'll run 15,000 times (datatable row count), copy cthe data of each row -3 fields- to a struct, and send the strct to...
7
by: Tom | last post by:
How can I make code not execute for a debug build, but do execute for a production build? I have code which prompts for an account and password when the program starts up. It is a pain to have to...
1
by: Crash | last post by:
Hi, ..NET v1.x SP1 VS 2003 SQL Server 2000 SP3 Server 2000, XP, Server 2003 I would like to programmatically execute {possibly many} SQL Server batch scripts. Aka I have many scripts that...
4
by: Chuck P | last post by:
I was wondering what practices people have come up with for deployment. I want to precompile the application and encrypt portions of the web.config. In 1.0 I just did a batch file that would...
4
ck9663
by: ck9663 | last post by:
hi guys this is a little challenging, at least for me...here goes... i have to run a DOS batch file from a server. with some parameters that i need to pass. these parameters can be found on a...
1
by: byjufromgamut | last post by:
I created a batch file, when executes gives a preview window(using swings & JFrame). I created another java fie in which used a Process object and Runtime.getRuntime().exec(path) , where path...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.