I don't understand this issue, but it happens on both of my computers where I use VS and Arduino plugin. This is specific to VS2015. I am running the latest version of the plugin, which was updated today. (I can't remember how to find plugin version number)
Basically when I switch between debug and release, or switch to another computer where there have been significant enough changes since the last build, or sometimes it will do it EVERY time I build the debug version, VS hangs and it will take over 30 seconds to compile what usually takes about a second.
Quote:Compiling debug version of 'Project' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Tutorial mode is Off.
Program size: 102,020 bytes (used 40% of a 253,952 byte maximum) (32.91 secs)
Minimum Memory Usage: 4097 bytes (50% of a 8192 byte maximum)
But if I build it again, I get this:
Quote:Compiling debug version of 'Project' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Program size: 102,020 bytes (used 40% of a 253,952 byte maximum) (0.90 secs)
Minimum Memory Usage: 4097 bytes (50% of a 8192 byte maximum)
Which is more what I expect.
While this is happening, VS will hang 100%. Can't make any changes to code. Can't look at other menus. Can't cancel the build. It's frustrating to have to wait 30 seconds for it to compile. I also notice that this happens more often in Debug than it does in Release. It was so bad at one point that I was finding that it took me less time to debug in release mode than in debug mode because I didn't have to wait 30 seconds each time I would compile.
For the record, both of my machines are extremely beefy. No messing around here. i7 6-core processors, and LOTS of memory. I don't have these issues compiling any of my .Net apps.
Any ideas?