Running an executable pre and post compilation in VS.NET (2003)

O

Olumide

Hi -

I'm writing a plugin with VS.NET (2003), for an application (Autodesk
Maya). My work cycle is basically:

1. write code
2. unload plugin in target application (where I do my testing)
3. compile plugin
4. load plugin in external application (bash head against table when
plugin does not work)

The external application has a command that allows an external
application to give it any command -- including unloading a plugin.
I'd like to have VS.NET run a small executable that does step 2
(before compilation) and step 3 (after compilation).

Can VS.NET run an executable pre-post compilation?

Thanks,

- Olumide


PS: laziness (the good kind) is the mother of invention :)
 
M

Mattias Sjögren

Can VS.NET run an executable pre-post compilation?

Sure. You can configure it in the project properties dialog.


Mattias
 
O

Olumide

Thanks. I see that would be done in Build -> Pre-build Event | Post-
Build Event ....

I sometimes get the Project Build Error PRJ0019, and a dialog with the
message "<my_program> is not a valid Win32 application" or something
like that -- although this my_program runs in the command window.
 
A

Andrew Faust

Do you have spaces in the paths to any of the stuff you are running? If so
you need to put quotes around the paths just like you would at the command
line,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top