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 How to archive & retrieve solutions/projects? (Read 4235 times)
jirkaptr
Junior Member
**
Offline


Posts: 14
Location: CZ
Joined: Dec 14th, 2016
How to archive & retrieve solutions/projects?
Dec 14th, 2016 at 5:33pm
Print Post  
For future application maintenance, studies and simply for next use of application it is necessary to archive solutions and/or projects.

1.      To archive unique modules like sketch files it  is not significant problem because it is easy to zip/unzip source files. The question is how to archive and later retrieve libraries and files shared with other projects plus eventual individual settings of VS&VM environment? I experienced libraries and shared modules that are actualized/modified in the way that the principle of back-compatibility is not kept.  Unfortunately it happens very often. I treat very uncomfortable and risky to force actual ProgramFiles(86)/arduino/libraries or documents/arduino/libraries by old versions due to incompatibility; I am not mentioning setting of environment…

2.      To upload archived application it would be sufficient to use hex file. How to use VS&VM  for this purpose? It should be enough to perform standard upload using Arduino bootloader w/o (for example) “unzipping” of project stored according previous paragraph. Maybe to create apparently dummy project into which to foist needed hex file…?

Advices will be apreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to archive & retrieve solutions/projects?
Reply #1 - Dec 14th, 2016 at 6:04pm
Print Post  
Hi,

Good questions. We are working towards making this better. Some points of note ..

1) All past Arduino IDE versions can be downloaded from arduino.cc and all hardware installed via board manager has a version number with previous versions listed. This means you can use the correct core version in the future.

We also are working on improving the "Import Hidden Files" feature so that the "\core" is copied to a sub folder below the local project folder. (You can already do this with libraries)

2) Paid users can import Library sources to a sub folder below the project. Click the "vMicro>Add Code>Add/Create New Library" command in a project to see the folder structure to use. 

(When you have one library imported then click "vMicro>Toggle Hidden Files" and I think all existing libraries will be copied locally for you. New feature so might or might not work)

3) After build, the .hex is copied from the temp build folder to project\configName (for example: myproject\debug)

4) Previous builds can be re-uploaded using "vMicro>Uploader>Upload last build". However this command looks in the temp build folder for the .hex so it would be a good idea to change visual micro to use the hex from myproject\debug

5) Visual studio extensions gallery has many extensions. I think there might be one that will zip the current solution and all the projects inside it. It is also a planned feature for visual micro.

I hope this helps
  
Back to top
IP Logged
 
jirkaptr
Junior Member
**
Offline


Posts: 14
Location: CZ
Joined: Dec 14th, 2016
Re: How to archive & retrieve solutions/projects?
Reply #2 - Dec 20th, 2016 at 1:22pm
Print Post  
Hi, Tim,
thanks for instant and inspiring answer. I spent a lot of time by “deep search” of the matter.


Tim@Visual Micro wrote on Dec 14th, 2016 at 6:04pm:
5) Visual studio extensions gallery has many extensions. I think there might be one that will zip the current solution and all the projects inside it. It is also a planned feature for visual micro.

Only one thing found:  https://marketplace.visualstudio.com/items?itemName=DataJuggler.SolutionShipper. It is quite new contribution promising among others to “Archive Projects“. I have not tested it yet.

Tim@Visual Micro wrote on Dec 14th, 2016 at 6:04pm:
2) Paid users can import Library sources to a sub folder below the project. Click the "vMicro>Add Code>Add/Create New Library" command in a project to see the folder structure to use. 

(When you have one library imported then click "vMicro>Toggle Hidden Files" and I think all existing libraries will be copied locally for you. New feature so might or might not work.

I, as user who paid, may use Add/Create New Library.  This is very powerful instrument for archiving purposes of Solutions/projects! I have made careful research regarding Added/Created libraries/files.

The matter of the advantage lies in the fact that Local files take precedence over all other libraries/files of the same name.  This feature will allow to foist the actually outdated or specially modified libraries into a retrieved or old project. 

It is necessary just to take this fact into consideration before archiving. For simplicity and clarity of things, it is appropriate that the files physically lay in Arduino/ProjectName/src/_micro-api/libraries/LibName => Files have to be “Created”.  If you want to “Add” libraries then prefer the addition of libraries copied there in advance. But anyway I do not know how about absolute/relative addresses...

How the VS’s, VM’s and project’s configuration files could be archived/retrieved, I have no idea. It is your turn, Tim.

Tim@Visual Micro wrote on Dec 14th, 2016 at 6:04pm:
3) After build, the .hex is copied from the temp build folder to project\configName (for example: myproject\debug)

Yes, it is a good idea. I guess it is easy to realize. Actually I needed to upload application from my friend. For this reason I decided to use http://www.gammon.com.au/forum/?id=11638. It really works!
Tim@Visual Micro wrote on Dec 14th, 2016 at 6:04pm:
We also are working on improving the "Import Hidden Files" feature so that the "\core" is copied to a sub folder below the local project folder. (You can already do this with libraries)

If I understand correctly, it shall definitely resolve the archiving problem. BTW: I have activated my non-profit license in October 2016. When will it expire regarding VM actualizations/upgrades? Will emeritus R&D engineer (67.95) see it Wink? I found none Business Conditions.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to archive & retrieve solutions/projects?
Reply #3 - Dec 20th, 2016 at 2:47pm
Print Post  
Quote:
It is necessary just to take this fact into consideration before archiving. For simplicity and clarity of things, it is appropriate that the files physically lay in Arduino/ProjectName/src/_micro-api/libraries/LibName => Files have to be “Created”.  If you want to “Add” libraries then prefer the addition of libraries copied there in advance. But anyway I do not know how about absolute/relative addresses...

How the VS’s, VM’s and project’s configuration files could be archived/retrieved, I have no idea. It is your turn, Tim.



Local libraries work the same way as Arduino libraries. #include "libName.h" do NOT specify a path. So this works well for archive.

VS config are in the project folder (.vcxproj, .sln). Visual Micro udes the vcxproj for some settings and the xml files in the sub folder below each project called "\_vm"


Quote:
BTW: I have activated my non-profit license in October 2016. When will it expire regarding VM actualizations/upgrades? Will emeritus R&D engineer (67.95) see it Wink? I found none Business Conditions.


I do not understand this question fully. If you have purchased a license it will never expire. Upgrades are guaranteed for 12 months. Currently after 12 months upgrades remain free but in the future this might change, there might be a nominal fee/charge it depends on how many people continue to buy.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to archive & retrieve solutions/projects?
Reply #4 - Dec 25th, 2016 at 10:49pm
Print Post  
I forgot to mention about relative paths.

Visual micro does not use relative paths for paths that it manages because it rebuilds them each time the project is opened. 

For example, the location of the arduino ide or libraries might alter but these paths are recreated when a project is opened so they do not need to be relative.

You should not encounter any other actual paths, all code should be in the project with relative paths. If this is not the case then please report for discussion of confusion or bug.

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