473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

devenv commandline switch /clean has no effect

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
WindowsApplication1. A Form with Name is created automatically. At this
point, a listing of all files ("dir /s /b /on c:\temp\solution1" in cmd
window) shows:
C:\Temp\Solution1\Solution1.sln
C:\Temp\Solution1\WindowsApplication1
C:\Temp\Solution1\WindowsApplication1\AssemblyInfo .vb
C:\Temp\Solution1\WindowsApplication1\bin
C:\Temp\Solution1\WindowsApplication1\Form1.resx
C:\Temp\Solution1\WindowsApplication1\Form1.vb
C:\Temp\Solution1\WindowsApplication1\obj
C:\Temp\Solution1\WindowsApplication1\WindowsAppli cation1.vbproj
C:\Temp\Solution1\WindowsApplication1\WindowsAppli cation1.vbproj.user
C:\Temp\Solution1\WindowsApplication1\obj\Debug
C:\Temp\Solution1\WindowsApplication1\obj\Debug\te mp
C:\Temp\Solution1\WindowsApplication1\obj\Debug\Te mpPE

Keeping Solution configuration Debug, choosing Build and listing agains
shows additional files:
C:\Temp\Solution1\WindowsApplication1\bin\WindowsA pplication1.exe
C:\Temp\Solution1\WindowsApplication1\bin\WindowsA pplication1.pdb
C:\Temp\Solution1\WindowsApplication1\obj\Debug\Wi ndowsApplication1.exe
C:\Temp\Solution1\WindowsApplication1\obj\Debug\Wi ndowsApplication1.Form1.resources
C:\Temp\Solution1\WindowsApplication1\obj\Debug\Wi ndowsApplication1.pdb

Then closed the IDE and executed "C:\Program Files\Microsoft Visual
Studio .NET 2003\Common7\IDE\devenv.exe" /clean debug
"C:\Temp\Solution1\Solution1.sln" 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

Jan 29 '06 #1
2 1992
Hello ro***********@gmail.com,

I've got alternative solution - use DPack tool, http://www.usysware.com/dpack/
It has feature to archive the clean project
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.


---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jan 29 '06 #2
Roel,
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.


This is a know issues with VS.NET 2003, i.e. Clean command line
parameter (and IDE command afaik) simply doesn't work.

Michael, thanks for the referral.
--
Sergey Mishkovskiy
http://www.usysware.com/dpack/ - DPack - free VS.NET add-ons
http://www.usysware.com/blog/
Jan 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nitin Gaur | last post by:
Hi, I am developing an application using Visual Studio .NET in C++. I am using following command to automate the debugging of this executable: devenv -command Debug.StepInto myProg.cpp...
0
by: Marcos Lima | last post by:
Hi, Does anybody reach this situation: When selecting "Add Resrouce", on a .rc file, the IDE disappear suddenly. I debuged the devenv.exe with another instance of it, and the output window...
2
by: Christoph Borger | last post by:
Hello! I have wrote a windows service in vb.net. This service monitors the running processes with WMI and the Win32_Process class. Till last month all seems ok. But since the begin of september...
13
by: Michael Griebe | last post by:
Simple question. I am optimizing some C++ code and I'd like to know which is faster (or if there is any difference at all) between using a switch statement or nested else-ifs. I'm partial to...
1
by: ritesh.noronha | last post by:
Hi Group, I have a question regarding the commandline options of msbuild. I am currently using msbuild to build projects using the existing solution files. These solution files have references...
3
by: pemo | last post by:
Opinion please. The code below is an attempt at demonstrating commandline arg processing. I don't really like the repetitive use of ... if(!(*s)) { // Make sure we don't go out of bounds....
5
by: Samuel R. Neff | last post by:
Can I launch devenv.exe and specify a web site to open via command line? No solution or project file, just a web site. Thanks, Sam ...
6
by: asincero | last post by:
Which is better: using an if/else construct to simulate a C switch or use a dictionary? Example: def foo(): if c == 1: doCase1() elif c == 2: doCase2() elif c == 3: doCase3()
2
by: chrisber | last post by:
using the unittest module in Python 2.3.5, I've written some test code that ends up with if __name__ == "__main__": unittest.main() Since I want to run this code in various environments, I'd...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.