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 Adding Pre and Post Events to build (Read 3164 times)
The Kameleon
Newbies
*
Offline


Posts: 1
Location: Seattle, WA
Joined: Feb 18th, 2013
Adding Pre and Post Events to build
Feb 21st, 2013 at 8:51am
Print Post  
Visual Studio allows for pre and post events but for some reason they don't fire.  Can we add them?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Pre and Post Events to build
Reply #1 - Feb 21st, 2013 at 2:30pm
Print Post  
Hi, what information would you need to be available to these events? 

If you have an immediate requirement then there is an option which might or might not be useful to you.

Download the vm version from codeplex called Teensyduino Alpha. This is a standard arduino 1.0.3 plugin for VS but includes some additional support for the teensy board properties.

In the teensy board properties you will see the facility to run your own post build event exe, vm passes the upload params and build path to the exe as args[] when it runs.

The post build event does not interfere with the upload and runs after compile.

Another alternative that some users have been clever with is the "tools>options>compile>show build path" property. Switch this on to see a build path in the compiler output window. CTRL+CLICK the build path to see the build files in an explorer shell window. This allows you to use normal windows shell shortcuts to assign right click options that allow "batch files" to run that perform various functions with the elf or hex output from the build.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint