PDA

View Full Version : /clean does not work


dsmith
09-21-2004, 05:28 PM
I tried passing /clean to a .NET 2003 project via Options tab (Enter any additional values...). It worked when I used a VC6 project but not .NET 2003. .NET 2003 expects /clean *instead* of /build and /clean is supposed to be the first parameter to devenv.exe. devenv.exe /build abc.sln /clean does not work.

kinook
09-21-2004, 06:09 PM
Clean is not supported in the Make VS.NET action. Is there any particular reason not to just do a force rebuild (equivalent of clean, then build) instead of clean? If you must perform a clean, use a Run Program action with a command of:

%DEVENV_NET% /clean solconfig "c:\path\to\slnfile.sln"

although in my tests /clean only seemed to do something for C++ projects.