469,344 Members | 6,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

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 1530
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matora Nickolay | last post: by
3 posts views Thread by We need more power captain | last post: by
4 posts views Thread by Sivakumar Shanmugam | last post: by
4 posts views Thread by Alfonso Morra | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.