Click here to Skip to main content
15,898,819 members
Please Sign up or sign in to vote.
2.60/5 (3 votes)
See more:
Hi,

There is no clean solution option in Visual Studio 2008. Can any one tell me how to perform this operation.

Thanks
Raj
Posted
Updated 8-Mar-14 19:52pm
v2

It should be there.If you use express edition,it is just hidden in the Express Editions.You can add that functionality in a custom menu.

Same thing you can achieve by using Press CTRL+Shift+B

Please check this : Clean Solution
 
Share this answer
 
Clean does not clean up your code.
It simply removes the build files and the obj folder.

To clean up your code trying refactoring it[^].
 
Share this answer
 
Well, Rebuild your project. (may not be helpful, but give it a try ;))
And still it is not helping then, try to create new project and see.

I forget to mention this, you can clean your solution using command line as well. For example,
devenv FileName /Clean [ /project projectnameorfile [/projectconfig name ] ]
See MSDN[^]

-KR
 
Share this answer
 
v2
In the command line environment for Visual Studio, run the following line
devenv /clean SolnConfigName SolutionName

Here[^] is some documentation on the line.
 
Share this answer
 
Comments
Member 10599847 9-Mar-14 2:01am    
When I type devenv in the command window, it throws an error, "Command devenv is invalid". Please advise what could be the alternative.
Thanks
Abhinav S 9-Mar-14 3:10am    
Dont use the normal command prompt.
Use VIsual Studio's command prompt. Go to start menu/Visual Studio 2008 and locate the command prompt window.
Member 10599847 9-Mar-14 3:38am    
I did that in command window in Visual Studio 2008 only It has a list of commands, but it does not contain this command. It has a command 'build.cleansolution', but it says this command is not available.
Abhinav S 9-Mar-14 4:09am    
Clean does exist. http://msdn.microsoft.com/en-us/library/5tdasz7h%28v=vs.90%29.aspx
Wouldn't know why there isn't a clean option in the build menu, but you can always perform it using the command line[^]
 
Share this answer
 
I manually deleted all the unused and excluded programs and several duplicate copies of the prgorams . It started working fine
 
Share this answer
 

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