473,841 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1709
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.no spam> 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.o detocode.com> wrote in message
news:a0******** *************** *********@4ax.c om...
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.no spam> 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.no spam> wrote in
news:OK******** ******@TK2MSFTN GP14.phx.gbl:

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:a0******** *************** *********@4ax.c om...
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_NO SPAM_Xcrtimmons inc.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.16...
"Dmitry Duginov" <di**@nospam.no spam> wrote in
news:OK******** ******@TK2MSFTN GP14.phx.gbl:

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:a0******** *************** *********@4ax.c om...
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.no spam> wrote:

"Scott Allen" <sc***@nospam.o detocode.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.no spam> wrote in
news:eK******** *****@TK2MSFTNG P10.phx.gbl:

"Chris R. Timmons" <crtimmons@X_NO SPAM_Xcrtimmons inc.com> wrote
in message
news:Xn******** *************** ***********@207 .46.248.16...
"Dmitry Duginov" <di**@nospam.no spam> wrote in
news:OK******** ******@TK2MSFTN GP14.phx.gbl:
>
> "Scott Allen" <sc***@nospam.o detocode.com> wrote in message
> news:a0******** *************** *********@4ax.c om...
>> 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
2414
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 newest versions of external dlls, when they were during my program compilation. As far as I know, there are only 2 methods of using components storied in external dlls: 1. Just setting reference to those libraries. But it does not solve the
0
2816
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 referenced in function "public: static struct _object * __cdecl SomeFunctionName Script.obj : error LNK2019: unresolved external symbol __imp__PyObject_Repr referenced in function "public: static struct _object * __cdecl
3
6086
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 the workspace and then: Build>Batch Build
4
4978
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 to us by a vendor(PCMILER application). The C-Function does the following operations- Open the server,get distance between two points and close the server. It takes two input parameters(points). Whenever I call UDF via select statement it always...
4
1886
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 symbols are given the value of 0 ?. Is this compiler specific or part of the C standard? PS: It is too long winded to explain WHY I need to do this - I just need to know if it will work reliably - i.e. I can count on an unresolved external...
0
5211
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 my project and a header file. The header file(.h) contains the class, there is a main.cpp which contains the main part of the program and another .cpp file which contains the member functions of the class My problem is that when i create a project...
5
3655
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 New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
5
4796
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 3rd party open source library header file
2
5340
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: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
0
9865
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9708
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7851
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5694
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4498
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 we have to send another system
3
3140
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.