Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi, may i know how can i rename a folder of a solution written in c#? E.g. the folder is the folder which is at the same path as the xxx.sln and xxx.suo file. I cant seem to rename it directly by using right-click. For example, the solution i have renamed it into ABC.sln and now i want to rename the folder above the ABC.sln into ABC also but when i open the solution it will say some error.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jul-14 21:56pm    
You are asking as if Visual Studio did not have a context help... Are you using Visual Studio at all?
—SA
Philippe Mori 22-May-15 12:16pm    
Rename both the solution and the folder. It is not that hard.

 
Share this answer
 
Comments
Jamie888 20-Jul-14 22:05pm    
i have renamed the solution name but the folder name remained the same
Dilan Shaminda 20-Jul-14 23:19pm    
you can change the folder name as you like.
Just rename it. Most Solution Explorer motes have the item "Rename" on a context menu.

Look, before trying to do programming, you should better look through all the IDE and know what menu items do what. This is not too hard, but will help you to understand what you are doing.

—SA
 
Share this answer
 
Comments
Jamie888 20-Jul-14 22:03pm    
i can rename the solution which is successful but the folder name remained the same
Sergey Alexandrovich Kryukov 20-Jul-14 22:07pm    
Which folder? A note on the Solution Explorer can be a real file-system folder or not. Anyway, there is no such problem.
The solution is a file, not folder. If you need the same solution in another folder, you should create a new folder and move a solution there.
—SA
Jamie888 20-Jul-14 22:09pm    
a folder which is located above the .sln and .suo
Sergey Alexandrovich Kryukov 20-Jul-14 22:20pm    
I already explained that above. You need to select the solution node in the tree view of Solution Explorer.
Then go to the Files menu of the main menu and move the solution in the folder you created.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900