AS 7 - Rename solution and projects in the name of re-use

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.  I have am AS 7 Solution.  I wish to copy and use the solution but still tailor to names for the different application/use.

 

I am aware that I right click the Solution and/or the Projects, then use "rename".

But this still leaves a file structure with undesirable names from the initial set up.

 

How can I rename these folders involved ??

 

Regards JC.....

Last Edited: Thu. Jul 23, 2020 - 05:27 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jmclifford@aanet.com.au wrote:
a file structure with undesirable names from the initial set up

Not quite sure what you mean by that - could you illustrate?

 

Note that the Project file is just a text file - so you can edit it in a text editor (one that understands XML will help; eg, Notepad++)

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Hi. 

My procedure for utilising a previous solution is to;

 1 Copy to new location

 2 Open solution with AS and rename projects and solution to what I desire.

 3 Close file and edit .atsln file with notepad ++.

    Change the subfolder to "subfolder" below, and possibly lower folder with renamed project names.

 4 Of course do the same with the actual file structure itself.

 5 I still have 2 higher level folder which I rename.  This is the xxx below.

 

 

 

Can we improve on this ??

 

Regards JC.....

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AS7 is not like VS2015 (on which its based). In VS2015 the hierarchical structure you see for projects within solutions are "virtual" and are simply "filter names" not the names of directories on disk. As such they are contained in the XML of the SLN/VCPROJ files and can be edited like everything else. But AS7 uses physical directory names to show the structure so you'd actually have to rename the underlying directories to change the things.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am not familiar with VS (Visual Studio ?). I have been renaming the underlining directories.

I need the 2 xxx levels (as above), for the relative addressing to the libraries.

It pretty hopeless for the point of view of easy of use.

 

Regards JC..... (and ta)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jmclifford@aanet.com.au wrote:
It pretty hopeless for the point of view of easy of use.
Agree. It's ironic that AS7 is really Visual Studio 2015 with an Atmel coat on and yet one of the things they changed was this project structure thing and did not use the "filters" that VS2015 offers. In that it's really easy to rename the hierarchical structure without changing anything about the underlying disk layout. What's more one "folder" in a VS2015 project could really contain 3 different files in 3 different places on the disk but just grouped together. But in AS7 you'd have to actually group them together on the disk.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel coat on and yet one of the things they changed was this project structure thing

Just to fill in the details from the inside... The project systems is actually not part of the Visual Studio shell at all, it's a 'plugin'. The one that we use is not exactly the same as what Microsoft uses for their products (with the unfortunate side effects like this).

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah so not exactly a deliberate choice but what "came with the turf". Makes sense. (still prefer VS filters though!)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Makes sense. (still prefer VS filters though!)

I wont argue against that wink

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you open the project/solution in AS7 then you have to look at the "solutions explorer"  basically it shows the file structure. There when right clicking on a file or folder you can rename them and they will be renamed subsequently on the disk.

I use that a lot as I also almost always take an existing project, copy it, and rename the files and folders that should get another name. Might be that you need to edit a couple of  files as the locations they are looking for have changed ( the #include.... file names and paths).