Reputation: 45
I have made my application, just wondering if there was a way I could change the name of my application/.sln . Because Obviously the namespaces will need to changed etc.
But I was just curious whether theres a correct proceedure/easy method to go about it?
Upvotes: 0
Views: 53
Reputation:
You can rename any project by right-clicking the project in Solution Explorer and select Rename. But this doesn’t change the physical folder name. To change the physical folder name, first right-select “Open Folder in Window Explorer”, then close the solution (File> Close Solution), then rename the folder that contains the project (the folder in which the *.csproj file resides). When you reopen the solution, VS won’t be able to load the project. To fix this, remove the stale project entry in Solution Explorer, then right-select the Properties of the solution > Add > Existing Project and navigate to select the *.csproj file.
Caveat: The namespaces for your classes will stay the same as they were before the rename.
Upvotes: 2
Reputation: 3240
There is no easy whay, but you can use Find and replace to do so.
Upvotes: 0