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
Normal Topic Creating libraries in Visual Micro (Read 972 times)
TonyZ
Junior Member
**
Offline


Posts: 13
Joined: Jun 6th, 2023
Creating libraries in Visual Micro
Nov 13th, 2023 at 10:22pm
Print Post  
I am aiming to make libraries that complies to Arduino specifications. The ideal structure should be that there is a "src" folder for source code, and "examples" folder for example sketches.

Using Visual Micro with Visual Studio, how to create such a structure? Thanks.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: Creating libraries in Visual Micro
Reply #1 - Nov 14th, 2023 at 9:44am
Print Post  
If you use the "Arduino Library Project (Visual Micro)" template when creating the project, this will automatically add the library.properties, and LibraryName.h / LibraryName.cpp in the root of the project, and create the src sub-folder.

If you switch Solution Explorer to the Folder View, you can add in additional folders (e.g. examples) and source code to the src folder as needed.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint