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 Work on Libraries? (Read 1863 times)
Boomalator
Junior Member
**
Offline


Posts: 16
Location: Calgary, Canada
Joined: Mar 9th, 2017
Work on Libraries?
Aug 6th, 2017 at 8:17pm
Print Post  
Maybe I'm just missing something... but...

How do I use VisualStudio/Visual Micro to work on a library?
It seems to think it is only an "Arduino Project" if it has an .ino file.

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Work on Libraries?
Reply #1 - Aug 7th, 2017 at 3:36pm
Print Post  
Yes we use the standard vs shared projects for libs.

There are various ways to create lib projects. the easiest is to use the "Create a project when adding libraries" checkbox on the visual micro add library menu. With the checkbox enabled a project will be created when adding a library to a project. You then use the "References>add Reference" option on one or more arduino projects to use/develop the lib.

http://www.visualmicro.com/post/2017/01/16/Arduino-Cross-Platform-Library-Develo...

This assumes your library has an arduino "library.properties" text file
« Last Edit: Aug 7th, 2017 at 3:37pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Boomalator
Junior Member
**
Offline


Posts: 16
Location: Calgary, Canada
Joined: Mar 9th, 2017
Re: Work on Libraries?
Reply #2 - Aug 9th, 2017 at 12:31am
Print Post  
Again, thank you. I searched the site for "library" but either missed that link or didn't go far enough. Sounds perfect.

(So, yes, I was missing something.)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint