My current solution for renaming the project folder is:
- Remove the project from the solution.
- Rename the folder outside Visual Studio.
- Re-add the project to the solution.
Is there any better way?
My current solution for renaming the project folder is:
Is there any better way?
See item 3 in linked article.
It worked for me.
Proven solution for Visual Studio extension for Data Tools for Business Intelligence (SSDT-BI 2013):
Tested 100% and worked flawlessly on my case.
NOTE: Can't confirm if it works under different project templates a/o Visual Studio versions. As always, do backup everything beforehand.
When using TFS step 2 is actually to rename the folder in source control and then get the latest before reopening the solution.
Similar issues arise when a new project has to be created, and you want a different project folder name than the project name.
When you create a new project, it gets stored at
Let's assume you wanted to have it directly in the
ject
folder:My workaround to accomplish this is to create the project with the last part of the path as its name, so that it doesn't create an additional directory:
When you now rename the project from within Visual Studio, you achieve the goal without having to leave VS:
The downside of this approach is that you have to adjust the default namespace and the name of the Output binary as well, and that you have to update namespaces in all files that are included within the project template.
After changing the folder name, open the .sln file in notepad and change the path to new path.
We recently uploaded a beta of an free VS extension which does this stuff for you. Have a look at VS Gallery: Gallery Download