How to automate arduino development using visual studio

You may add any of the visual micro arduino commands to the visual studio tool bars and menus. You may also reference the commands in your visual studio macros. Serial ports, libraries, boards are also available as commands.

Example

The "Arduino Mega" will appear as a visual studio command (Tools, Customise), COM23 (if it exists) will also appear as a command, the SoftwareSerial library will also appear as a command.

Therefore you could add there new tool bar buttons for each providing a "one click" option to select options you use regularly. or you can create a workflow (macro) that automatically selects the "mega" board, sets COM23 and includes the software serial library into the current project.

Example: Customise Visual Studio Arduino Commands

 

Unsupported Compiler Note

The compiler outputs hex files into the <project>\_vsaddin\_build folder. The addin projects can be run from the visual studio command line. This makes it possible to design windows applications using visual stuidio that upload different arduino sketches based upon conditional factors

Tips & Bits

Connect two or more arduinos and spy on the serial communication using visual studio and "Serial Echo"

Coming soon! Android and Processing for Visual Studio

How to prevent or remove Visual Studio pch folders

How to configure visual studio color coding for arduino source code

See more Examples

We can use different arduino engines to power our visual studio addin. However, please use the arduino 0022 engine until we have an arduino 1.0 solution.

The new version of Arduino for Visual Studio includes initial suport for the new arduino .ino file extension. You can not yet compile for arduino 1.0 but you can compile sketches containg a mix of .pde and .ino sketches.

Multiple sketch projects and windows projects can co-exist in a single solution. Fully integrated. F5 Compile and upload (startup project). Build Project, Build Solution