Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can I add a pre-build event? (Read 931 times)
Peter9
Newbies
*
Offline


Posts: 5
Joined: Apr 29th, 2013
Can I add a pre-build event?
May 18th, 2013 at 9:11pm
Print Post  
The question says it all really.
I would like to add a command to be run before Visual Micro builds my project so that it can sort out some include files for me.

Is there a way to do this?
Just specifying it as a pre-build event in Visual Studio didn't seem to work.

I'm using VS2012 by the way, and the latest VM.

Thanks,
Peter9
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can I add a pre-build event?
Reply #1 - May 18th, 2013 at 9:18pm
Print Post  
not at the moment but I have started some work for this. I'll bump it up the list over the next month or so.

Currently I can only suggest "tools>Options>always show build folder=true" so you can CTRL+CLICK and see the build folder. 

Add a .bat file to the build folder that does what you need, add a new tool bar or menu item that runs your bat then calls the normal vs build macro, assign your own function key to your build.

Sorry, it's a bit lame!
  
Back to top
IP Logged
 
Peter9
Newbies
*
Offline


Posts: 5
Joined: Apr 29th, 2013
Re: Can I add a pre-build event?
Reply #2 - May 20th, 2013 at 4:13pm
Print Post  
The batch file idea is working well now. Thanks.
I looked at making an add-in for it, but then I remembered why I don't use managed c++ on Windows!

In case anyone's interested, it was to run my little program to copy the include files around so that Visual Micro can find them when it compiles the Arduino code.
It's available here: https://github.com/PML369/Arduino_include_copier

Thanks for your help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint