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 Project location (Read 4887 times)
eewoz
Newbies
*
Offline


Posts: 3
Joined: Sep 4th, 2016
Project location
Feb 5th, 2017 at 1:42am
Print Post  
This has got to be a simple question but I have not been able to figure it out.  How do you control the directory location for a new Arduino project?  In Visual Studio 2015 I select Tools-Options-Projects and Solutions-General and enter the desired directory under Projects location.  Yet Visual-micro always puts the project in the same directory.  I am getting a very long list of projects in the same directory.  It is a very cumbersome way to keep track of things.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project location
Reply #1 - Feb 5th, 2017 at 9:50pm
Print Post  
It's an Arduino thing Smiley

Visual Micro allows you to create and open projects using standard visual studio commands such as "File>New>Project" or using Visual Micro commands such as File>Open Arduino Project".

The Visual Studio commands use the standard Visual Studio tools>options settings.

The Visual Micro commands use the standard Arduino settings.

In the Arduino word there is something called a sketch book folder. It default to mydocuments\arduino. In the arduino ide the file menu uses the sketch book folder so it's normally where arduino ide users have saved their sketches/projects.

You can change this location but be aware that when you download and install libraries they are located in sketchbook\libraries and some custom hardware will be located in sketchbook\hardware. Bear this in mind and move/copy the folders if you change the location of the sketch book folder.

Visual Micro provides the option to change the sketchbook location in the ide Configuration/Location window (see below). The arduino has the setting in the File>Preferences window.

It is recommended to use the standard "File>Open>Project" and "File>New>Project" menu item to open arduino projects whenever possible. The projects will then appear in the visual studio recent projects lists and be easier to open.

http://www.visualmicro.com/page/User-Guide.aspx?doc=First-steps.html
Change the sketchbook location but understand the impact first.



« Last Edit: Feb 5th, 2017 at 9:54pm by Tim@Visual Micro »  
Back to top
IP Logged
 
eewoz
Newbies
*
Offline


Posts: 3
Joined: Sep 4th, 2016
Re: Project location
Reply #2 - Feb 6th, 2017 at 12:47am
Print Post  
Thanks, Tim.  I think I understand what you are saying.  I don't think I want to keep moving the sketch book folder around.  It would just be nice to be able to put projects in sub directories to help keep projects organized.

You mentioned that it is possible to create projects using the visual studio command of "File>New>Project".  That procedure would be nice because it allows you to specify where the project is created, but when I take that approach I do not get the option of choosing an Arduino project.  I think I read on this board that it is possible to use "File>New>Project" and open a C++ project and then change the .cpp file to a .ino file.  Do you think that is an acceptable approach?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project location
Reply #3 - Feb 6th, 2017 at 1:00am
Print Post  
That's strange. You should see the visual micro logo under the c++ section with an arduino project option and also c++\visual micro with the same and a few extras.

Which version of visual studio are you using?
  
Back to top
IP Logged
 
eewoz
Newbies
*
Offline


Posts: 3
Joined: Sep 4th, 2016
Re: Project location
Reply #4 - Feb 6th, 2017 at 3:59pm
Print Post  
I am using Version 14.0.25431.01 Update 3.

How about that, the Visual Micro log does show up under C++!  It was there all along.  I was looking for an Arduino logo and the Visual Micro logo did not compute in my mind.  Using the Visual Micro logo does exactly what I want!  Thank you so much!  Problem solved.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint