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 Renaming a project library folder (Read 1094 times)
Duggle
Junior Member
**
Offline


Posts: 10
Joined: Jul 5th, 2021
Renaming a project library folder
Jul 18th, 2021 at 1:00pm
Print Post  
I have modified a solution cloned library folder source file to add a feature for a specific use case in the project. I would like to change the name of the filesystem local folder as well to make this clear in the future.
I have "renamed" the item in the solution explorer but this does not change the name of the actual folder.
What is the best way of managing the change of name? The source files in the library are nested quite a few layers deep (folders within folders) so to flatten the folders to a single folder containing the source files would be ideal.
Any recommendations on the smoothest way of achieving this?
Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Renaming a project library folder
Reply #1 - Jul 18th, 2021 at 5:09pm
Print Post  
Just to explain ... If you have a cloned library in the solution it is simply a Visual Studio shared c++ project. Therefore the question is really about Visual Studio.

If I understand the question then the answer should be this:-

Remove the shared library project from your solution by right-clicking it in the Solution Explorer window and choosing Remove. Move the entire project folder, including subdirectories wherever you want it to go. Add the project back to your solution by right clicking the Solution > Add Existing Project. (You will see a file with .vcxitems extension, that is the "project" that needs to be added)

After you have moved and readded the shared project, right click the "References" node of an Arduino project name in the solution explorer. Select "Add Reference". In the "add reference" dialog click "Shared Projects", the project you moved will appear in the list. Check the checkbox and close the "add references" window.

That should describe how to remove and re-add any shared library project to a solution.

One other point, in the solution explorer (not all files view) you can right click and "Add New Solution Folder". "Solution folders" do not actually exist, they are virtual. They allow us to organise projects and external ancillary (files such as docs) regardless of where the files are actually located.

« Last Edit: Jul 18th, 2021 at 5:10pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Duggle
Junior Member
**
Offline


Posts: 10
Joined: Jul 5th, 2021
Re: Renaming a project library folder
Reply #2 - Jul 19th, 2021 at 5:46am
Print Post  
Perfect!
Thanks much for the clear and detailed instructions.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint