

The "References" node of a Visual Studio project enables shared projects to be referenced by a master project. If the library.properties file does not exist the shared project is considered part of the main project. Shared projects that contain an Arduino library.properties in the root folder are considered to be Arduino Libraries.

Visual Micro also provides a simple way to create a shared project for an existing Arduino library. Shared projects can be created using the standard Visual Studio new project wizard. Tip: Adding a new library project to an official Arduino library folder will automatically make the library available for use in the Arduino IDE. A shared project can not be compiled directly, can not be a Startup Project and does not have a fixed platform. Intellisense in shared projects is powered by the current "Startup Project". Multiple main projects can use the same shared project(s). In this case the code can be accessed as if it was within the folder structure of the main project. During compilation of shared code projects, the code is merged with the main project code in the temp build folder. Shared "code" projects do not contain a library.properties text file. Shared "library" projects that contain an Arduino format library.properties text file in the project root are compiled as Arduino Libraries. It is important to understand the difference. There are two types of shared projects that Visual Micro supports. When creating a project from existing library code, the code remains unchanged and compatible with the Arduino IDE. Use "File>New>Project>C++>Arduino Library Project" to create a new library project or the "Add Library" menu to create from existing library code. C++ shared projects were released in Visual Studio 2015 and are improved in the soon to be released Visual Studio 2017. Visual Micro makes special use of Visual Studio C++ Shared Projects for both project and library development. Related: shared single code files between projects News: april 2017 - this functionality is free and in all version from vs2015+ # can be used to "comment" an entire line. ide prefix to EVERY key must be changed to a new value for each board.Įxample: Paste all of the keys below into a new Applications.txt. The items in bold must be changed for each application. Please note that it is possible to override this location in "Tools>Options>Visual Micro"Īn Applications.txt file can be placed in "\Micro Platforms"Ĭopy the following properties into an Applications.txt located in the " \Micro Platforms" folder. The default "My Visual Micro" location is " MyDocuments\Visual Micro". It is possible to add an Applications.txt file containing additional IDE entries in the Visual Micro Applications list.
