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 adding & editing libraries (Read 2827 times)
DrOldies
Junior Member
**
Offline


Posts: 16
Location: Iowa, USA
Joined: Feb 3rd, 2015
adding & editing libraries
Mar 2nd, 2015 at 3:15pm
Print Post  
I am working on my 1st project in VM, developing my own library. My library is in Sketches\libraries since it nearly complete and only needs minor tweeking. 

I added my library to my project: Project-Add\Import Sketch Library-User. Then I refreshed the project using Save All. Two questions:

1. Where do I save the .sln when prompted? Must it reside in the project folder?
2. I do not see the library files in the Solution Editor. How do  I access them for editing? Do I need to copy it to the project folder to edit?

The docs are very clear and detailed, but I could not find a section on editing libraries.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: adding & editing libraries
Reply #1 - Mar 2nd, 2015 at 10:06pm
Print Post  
Good questions thanks

Quote:
Where do I save the .sln when prompted? Must it reside in the project folder?


There are no rules for this. The .sln can be stored where ever you want.

Also worth noting that although the project must be stored with the sketch, the sketch can be stored anywhere. You are not limited to the sketchbook folder.


Quote:
I do not see the library files in the Solution Editor. How do  I access them for editing? Do I need to copy it to the project folder to edit?


You can toggle the lib and core sources in/out of the project by clicking the project then clicking menu "project>show sketch core and library sources". Click the menu again to remove or use the delete key because the sources are "linked" not copied to the project.

If you add new source files to a lib folder then click "tools>visual micro>reload toolchains" or restart the ide.

Also worth noting that you can manually add whatever you like to a project/solution. Visual Micro ignores the project for the compile and looks at the physical sketch folder then applies all arduino rules. Obviously the arduino ide does the same thing because it does not know about project files.

« Last Edit: Mar 2nd, 2015 at 10:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
DrOldies
Junior Member
**
Offline


Posts: 16
Location: Iowa, USA
Joined: Feb 3rd, 2015
Re: adding & editing libraries
Reply #2 - Mar 3rd, 2015 at 2:05am
Print Post  
Thanks for the detailed response. As I am new to Visual Studio and Visual Micro, the wording of many of the menu items are not obvious. 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint