Search code examples
c#visual-studioazure-devopsprojectsolution

Visual Studio Project rearrange project into folder with same name


Project name is testProject. I want to create a new folder named "TestProject" and move the project into it, because I want to add testProject.uTest and testProject.iTest for unit and integration tests. So everything related is located in the same folder.

The solution is in VSTS. Already one folder exists with the same name because of the project. Namespaces will all change.

How do I go about this the best way?


Solution

  • I got everything to work.

    First I opened the solution and deleted the project in there. Then I created the new folder in the solution explorer. I then copied all the project related files into the new folder in windows explorer. I opened up the solution and added this existing project and add all files to source contrl. Next I had to re-add nuget packages and fix some references in other projects. Next I pushed the changes and then I deleted the old project files in source control explorer.

    Took 10mins and everything works fine!