Sometimes, I want to archive or transport a solution. In such cases, I
would like to remove all redundant files from the solution, i.e. all
compiler output. The documention describes the command line switch
/clean (see
http://msdn.microsoft.com/library/de...xlrfclean.asp).
However, when I perform this for a solution, not a single file is
removed. I have seen that the process devenv is actually started and it
terminates without any errors. Below are the steps to reproduce this
behaviour:
Start the VS.NET 2003 IDE.
Create a new blank solution.
Accept the default Name Solution1 and choose C:\Temp as Location.
Add a new Visual Basic Project - Windows Application with default Name
WindowsApplicat ion1. A Form with Name is created automatically. At this
point, a listing of all files ("dir /s /b /on c:\temp\solutio n1" in cmd
window) shows:
C:\Temp\Solutio n1\Solution1.sl n
C:\Temp\Solutio n1\WindowsAppli cation1
C:\Temp\Solutio n1\WindowsAppli cation1\Assembl yInfo.vb
C:\Temp\Solutio n1\WindowsAppli cation1\bin
C:\Temp\Solutio n1\WindowsAppli cation1\Form1.r esx
C:\Temp\Solutio n1\WindowsAppli cation1\Form1.v b
C:\Temp\Solutio n1\WindowsAppli cation1\obj
C:\Temp\Solutio n1\WindowsAppli cation1\Windows Application1.vb proj
C:\Temp\Solutio n1\WindowsAppli cation1\Windows Application1.vb proj.user
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug\temp
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug\TempPE
Keeping Solution configuration Debug, choosing Build and listing agains
shows additional files:
C:\Temp\Solutio n1\WindowsAppli cation1\bin\Win dowsApplication 1.exe
C:\Temp\Solutio n1\WindowsAppli cation1\bin\Win dowsApplication 1.pdb
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug\WindowsAppli cation1.exe
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug\WindowsAppli cation1.Form1.r esources
C:\Temp\Solutio n1\WindowsAppli cation1\obj\Deb ug\WindowsAppli cation1.pdb
Then closed the IDE and executed "C:\Program Files\Microsoft Visual
Studio .NET 2003\Common7\ID E\devenv.exe" /clean debug
"C:\Temp\Soluti on1\Solution1.s ln" from the command line.
No files have been cleaned, while I would have expected that all .pdb,
..exe and the .resources files would have been removed.
Has anybody succesfully used the command swith /clean?
Thanks in advance,
Roel Schreurs
The Netherlands