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 an Arduino Visual Micro solution (Read 3010 times)
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Renaming an Arduino Visual Micro solution
Apr 15th, 2015 at 6:14pm
Print Post  
How do I go about renaming a Visual Micro Arduino solution? I know how to do it for regular C# (rename the folder and .csproj and delete/recreate the .sln) but when I try to do it for VM it breaks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Renaming an Arduino Visual Micro solution
Reply #1 - Apr 15th, 2015 at 11:05pm
Print Post  
Hi,

You mean how do you rename a project? The solution simply contains a number of projects and can be anywhere and called anything.

The shortest way is to right click the main .ino sketch file in the solution explorer and use the Visual Micro rename option.

However so you can fix or manually rename here is some info:-

To rename a project you have to follow the Arduino rules. Keep in mind that Arduino only knows of the folder name and a matching .ino of same name. 

So that's the first rule, the .ino has to be the same name as the sketch folder that contains it.

ie: Blink.ino in the Blink folder

Visual Micro also expects the Visual Studio project name to be the same as the folder and [sketch_name].ino. In Visual Studio the project has a few project files but also an internal name displayed (and renamed) in the solution explorer. You should keep both the internal and external project names the same.

Blink project name
Blink.vcproj etc...

Finally, if you manually change the name of the sketch and want to retain any additional Visual Micro project properties that you have applied (such as debug or compiler settings) you should also rename the xml files in the .Visual Micro sub folder. Otherwise the files will be created with new names for the newly named project. In that case you would be using the defaults.

Alternatively delete the Visual Studio files in the sketch folder (not any source code) and the files in the .Visual Micro folder and re-open using the Visual Micro "File>Open>Sketch Project". In that case Visual Micro will create a new Visual Studio project and configure all the sources for you.






« Last Edit: Apr 15th, 2015 at 11:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Bleary Eye
Junior Member
**
Offline


Posts: 18
Joined: Mar 10th, 2015
Re: Renaming an Arduino Visual Micro solution
Reply #2 - May 4th, 2015 at 6:22pm
Print Post  
The VS rename worked perfectly. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint