Hi all,
I use Visual Micro from some years now; currently I'm using it with Visual Studio 2017 Community Edition.
Recently I started working on some projects with Moteino (
www.lowpowerlab.com) that require a sketch for the gateway and as many sketches as the different kind of remote "nodes" one decide to use.
Visual Studio Solutions are very helpful with this kind of applications because they permit to have access to the complete code of an hardware project.
However I observed a behaviour that I think should be modified/corrected, at least if possible: if I open a sketch of the solution not marked as the "startup project", all commands (Compile, Rebuild, Clean, etc.) work on the open project but the Run/Debug command always causes the upload of the startup project on the currently selected Moteino/Arduino COM port!
In my specific case, for example, if I open a sketch corresponding to a node of the network but the startup project corresponds to another node or to the gateway, when I hit the run button on the toolbar, the sketch that is recompiled and uploaded to the currently selected COM port is the one corresponding to the startup project.
The only way to obtain the upload of the correct sketch on the correct Moteino/Arduino seems to be marking it as the startup project prior to hit the Run/Debug command.
Certainly this is a behaviour inherited from Visual Studio, but I'm guessing if it is modifiable/customizable in Visual Micro.
Any hint will be appreciated.