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
Hot Topic (More than 8 Replies) Visual Studio Post Build Events? (Read 17683 times)
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Visual Studio Post Build Events?
Jan 4th, 2016 at 12:13am
Print Post  
Are Build Events still not supported?  I want to have a post-build even to copy the BIN file to a network drive.  For some reason, when I build directly to a folder on the network drive, the build takes at least 10X longer than when I build to a local folder....

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio Post Build Events?
Reply #1 - Jan 4th, 2016 at 12:30am
Print Post  
No not vs events but you can add event hooks to the arduino platform.txt or board.txt. visual micro runs the hooks which can be .bat files or exec files

However if you update to the latest version it automatically copies the build output (hex/bin etc) to the project "Intermediate Directory". By default this will be Project\Debug or Project\Release but you can change it. 

The directory property is a standard visual studio project property > configuration properties > general.

Are you using an Arduino Zero?
« Last Edit: Jan 4th, 2016 at 12:31am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Visual Studio Post Build Events?
Reply #2 - Jan 4th, 2016 at 1:54am
Print Post  
Tim,

I'm running v1512.2.0.  Is that not the latest?  The copy to intermediate directory is not working for me.

I'm running on a Due.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Visual Studio Post Build Events?
Reply #3 - Jan 4th, 2016 at 2:19am
Print Post  
This is not good....

I just installed the latest plug-in, and I can no longer compile, so I am dead in the water...

Compiling 'SuperATC' for 'Arduino Due (Programming Port)'
Build folder: x_dbg
System.NullReferenceException: Object reference not set to an instance of an object.
   at Visual.Micro.MiroAppAPI.SketchBuilder._build(Boolean verbose)
   at Visual.Micro.MiroAppAPI.SketchBuilder.build(Boolean verbose)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand, Boolean isRebuild)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand, Boolean IsRebuild)


HELP!


Regards,
Ray L.
« Last Edit: Jan 4th, 2016 at 2:26am by RayLivingston »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio Post Build Events?
Reply #4 - Jan 4th, 2016 at 2:41am
Print Post  
The release notes show the history Smiley

You might just need to re-select your board

Otherwise please switch on "tools>options>visual micro>show build properties" and "verbose" and then click "Build>Clean solution" and then Build.

Email the output to info[at]visualmicro.com or post it here in a zip

If that doesn't work then you will need to give me the info. What version of arduino are you using? Which visual micro app name have you selected? Programmer or serial upload? Any com ports in the com ports list?

Thanks
« Last Edit: Jan 4th, 2016 at 2:44am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Visual Studio Post Build Events?
Reply #5 - Jan 4th, 2016 at 2:46am
Print Post  
E-mail sent....
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio Post Build Events?
Reply #6 - Jan 4th, 2016 at 3:07am
Print Post  
Thanks, have you got the Visual Micro>Verbose option switched on? If not please switch on the try a build.

Also confirm if Build>Clean Solution works then try build with verbose

Thanks
« Last Edit: Jan 4th, 2016 at 3:08am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Visual Studio Post Build Events?
Reply #7 - Jan 4th, 2016 at 3:14am
Print Post  
Tim,

That WAS a clean build, with Verbose true.  It doesn't even seem to be starting the actual build before throwing that exception.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio Post Build Events?
Reply #8 - Jan 4th, 2016 at 3:15am
Print Post  
I've sent you an email with some instructions so we can get a better error message.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio Post Build Events?
Reply #9 - Jan 4th, 2016 at 3:45pm
Print Post  
I have looked at your project and your will see in the solution explorer a yellow exclamation mark against file ATCWebServer.h

This is because the file has been included in the project but subsequently deleted.

I will make sure Visual Micro displays a more informative error message but if you right click and remove the file from the project it will continue the build process

Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint