What is the best way to change the directory structure (from sln and projects) in a C # project

Im working on a C # project, recently we decided to restructure the directory structure of the source code. I am doing a restructuring and wanted to ask you some questions about how best to carry out the change. Restructuring basically changes the current catalogs of all projects to a more structured and logical order.

Current structure (this is a diagram):

  • Main Deer:

    • Project
    • Project
    • Dir
      • Project
      • Project
      • Project
    • Dir
      • Project
      • Project
      • Project
    • Dir + Project Project File
    • Dir + Project Project File
    • Dir
      • Solution file.
      • Project
      • Project
    • Project Dir Etc ..

Target diagram: TFS project: Main - Source - Deere - Solution file. - Project - Project - Project - Project

     - Dir
        - Dir
            - Project
            - Project
            - Project
        - Dir
            - Solution file.
      - Dir

        - Project
        - Project

The relative location between projects varies, as well as the relative locations in the solutions.

, : - ? - ? - - ?

+3
2

- , , , , 1 , VS (), 2 - - powershell ( ) sln csproj.

1:

  • VS .
  • SLN ( ) .

2:

  • non csproj/sln , , .
  • script, XML ( proj SLN) . "" node ( .. \, file.etx) .

, , . №1 100 + csproj 30 sln . 4000 , , find replace in vs studio ( ) .

.

+1

2:

non csproj/sln , , .

:

+3

Source: https://habr.com/ru/post/1752026/