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

Run external program during BUILD?

My web application uses resource files to keep localized strings etc. Those
resource files prepared by external console program, which extracts this
stuff from the database.

Is there a way to invoke that program automatically after I hit build
(rebuild) button in Visual Studio, before VSS actually trying to build the
solution?

I'm working with Whidbey beta 2.

Thanks in advance,
Dmitry
Nov 19 '05 #1
6 1684
Hi Dimitry:

Yes, there are 'pre' and 'post' 'build events' in which you can
execute external programs. You'll find these events defined in the
project configuration, although offhand I don't know if they are
available in all versions (like Express).

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 2 May 2005 13:09:44 -0400, "Dmitry Duginov"
<di**@nospam.nospam> wrote:
My web application uses resource files to keep localized strings etc. Those
resource files prepared by external console program, which extracts this
stuff from the database.

Is there a way to invoke that program automatically after I hit build
(rebuild) button in Visual Studio, before VSS actually trying to build the
solution?

I'm working with Whidbey beta 2.

Thanks in advance,
Dmitry


Nov 19 '05 #2

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:a0********************************@4ax.com...
Hi Dimitry:

Yes, there are 'pre' and 'post' 'build events' in which you can
execute external programs. You'll find these events defined in the
project configuration, although offhand I don't know if they are
available in all versions (like Express).
Of course I looked at project options/configuration, but I couldnt find
those "Pre-build" and "Post-build" options. Could you be more specific?
--
Regards,
Dmitry Duginov

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 2 May 2005 13:09:44 -0400, "Dmitry Duginov"
<di**@nospam.nospam> wrote:
My web application uses resource files to keep localized strings etc. Thoseresource files prepared by external console program, which extracts this
stuff from the database.

Is there a way to invoke that program automatically after I hit build
(rebuild) button in Visual Studio, before VSS actually trying to build thesolution?

I'm working with Whidbey beta 2.

Thanks in advance,
Dmitry

Nov 19 '05 #3
"Dmitry Duginov" <di**@nospam.nospam> wrote in
news:OK**************@TK2MSFTNGP14.phx.gbl:

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:a0********************************@4ax.com...
Hi Dimitry:

Yes, there are 'pre' and 'post' 'build events' in which you can
execute external programs. You'll find these events defined in
the project configuration, although offhand I don't know if
they are available in all versions (like Express).


Of course I looked at project options/configuration, but I
couldnt find those "Pre-build" and "Post-build" options. Could
you be more specific?


Dmitry,

Unfortunately, pre-build and post-build events are not available for
C# ASP.Net projects in VS 2003.

There is a way around this, however.

You can use a Visual C++ make file. Here's an article from Microsoft
showing how to do this:

http://support.microsoft.com/default...b;en-us;810230

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 19 '05 #4

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Dmitry Duginov" <di**@nospam.nospam> wrote in
news:OK**************@TK2MSFTNGP14.phx.gbl:

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:a0********************************@4ax.com...
Hi Dimitry:

Yes, there are 'pre' and 'post' 'build events' in which you can
execute external programs. You'll find these events defined in
the project configuration, although offhand I don't know if
they are available in all versions (like Express).
Of course I looked at project options/configuration, but I
couldnt find those "Pre-build" and "Post-build" options. Could
you be more specific?


Dmitry,

Unfortunately, pre-build and post-build events are not available for
C# ASP.Net projects in VS 2003.


Is it any different in VS 2005?
There is a way around this, however.

You can use a Visual C++ make file. Here's an article from Microsoft
showing how to do this:

http://support.microsoft.com/default...b;en-us;810230


Thanks, I'll look at this stuff. But I gotta admit, I'm really surprised
that such a feature is really missing. I though it was not looking
carefully...
--
Regards,
Dmitry Duginov
Nov 19 '05 #5
Yep - I apologize. I thought 2005 had added the feature but I must not
have been working with an ASP.NET app at the time.

The good news is you should be able to hack up the MSBuild file
instead of using a make file, which might be a little easier. I'm
going to look into this because it's something I need to do pretty
soon...

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 2 May 2005 14:13:58 -0400, "Dmitry Duginov"
<di**@nospam.nospam> wrote:

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:a0********************************@4ax.com.. .
Hi Dimitry:

Yes, there are 'pre' and 'post' 'build events' in which you can
execute external programs. You'll find these events defined in the
project configuration, although offhand I don't know if they are
available in all versions (like Express).


Of course I looked at project options/configuration, but I couldnt find
those "Pre-build" and "Post-build" options. Could you be more specific?


Nov 19 '05 #6
"Dmitry Duginov" <di**@nospam.nospam> wrote in
news:eK*************@TK2MSFTNGP10.phx.gbl:

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote
in message
news:Xn**********************************@207.46.2 48.16...
"Dmitry Duginov" <di**@nospam.nospam> wrote in
news:OK**************@TK2MSFTNGP14.phx.gbl:
>
> "Scott Allen" <sc***@nospam.odetocode.com> wrote in message
> news:a0********************************@4ax.com...
>> Hi Dimitry:
>>
>> Yes, there are 'pre' and 'post' 'build events' in which you
>> can execute external programs. You'll find these events
>> defined in the project configuration, although offhand I
>> don't know if they are available in all versions (like
>> Express).
>
> Of course I looked at project options/configuration, but I
> couldnt find those "Pre-build" and "Post-build" options.
> Could you be more specific?
Dmitry,

Unfortunately, pre-build and post-build events are not
available for C# ASP.Net projects in VS 2003.


Is it any different in VS 2005?


Dmitry,

I don't have VS 2005 yet.
There is a way around this, however.

You can use a Visual C++ make file. Here's an article from
Microsoft showing how to do this:

http://support.microsoft.com/default...b;en-us;810230


Thanks, I'll look at this stuff. But I gotta admit, I'm really
surprised that such a feature is really missing. I though it was
not looking carefully...


I was also surprised when I discovered that feature was missing. The
Visual C++ makefile works quite well, however.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 19 '05 #7

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

Similar topics

2
by: Matora Nickolay | last post by:
Hello. My program has to use third party components located in several external libraries. Those components, also as my program, are usually been changed. The problem is to make my program use...
0
by: Ida | last post by:
Hi, I am trying to build an dll with Microsoft Visual C++ but during the linking phase I get linking errors. Script.obj : error LNK2019: unresolved external symbol __imp__PyString_AsString...
3
by: We need more power captain | last post by:
Hi, I know less than a noob, I've been asked to do some compiles in VC++ 6 without knowing too much at all. (I'm a COBOL program normally so this is all too much for me) I open VC++6, open...
4
by: Sivakumar Shanmugam | last post by:
Group.. We are running on db2 UDF V8 on Sun solaris platform. I created an UDF which calles a C-routine(SQL_API_FN). This C-routine in turn calls an external C-function. The C-function is provided...
4
by: Alfonso Morra | last post by:
Ok, this is a bit of a quick hack. I have a flag set in another file (the default value of the flag is 0. In certain files, access to the flag symbol is not available - I want to know if unresolved...
0
by: drumdawg21 | last post by:
Ive been working on this problem for a long time now and really need some help. I have a program in c++ code that gives me build errors and my program is having problems. I have two source files in...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
5
by: Frederiek | last post by:
Hi, I'm using MS Visual C++ 2005 (MSVC8.0). I am experiencing some kind of linker dilemma. While building a program I am -in a way- forced to use following construct. // aaa_ssf.h - some...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
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: 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...
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
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
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
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
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
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,...

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.