473,796 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
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

Jan 29 '06 #1
2 2013
Hello ro***********@g mail.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
1642
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 -debugexe myProg.exe The switch "-command" with option "Debug.StepInto" actually opens up the "Debug" toolbar menu and clicks on "Step Into" item in it. It opens up a "Save File As" dialog for saving "myprog.sln" file. I want to get rid of
0
1387
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 shows, just before choosing "Add Resource", the lines below: 'devenv.exe': Loaded 'E:\Arquivos de programas\Microsoft Visual Studio ..NET\Vc7\vcpackages\VCProject.dll', No symbols loaded.
2
7085
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 the service can't retrieve the commandline property of the processes. I think this is an result of .NET Framework 1.1 Service Pack 1 or XP SP2. Did somebody recognice the same effect? Did anybody knows how i can retrieve the commandline property...
13
7557
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 else-if. I know to put the if statement that is most likely to be true at the top of the else-if chain -so as to minimize checks. I've searched around online and mainly found answers to this question for Java programmers. Thanks in advance,...
1
6506
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 to external dll which have different paths on each machine. I am currently writing a build script and passing the specific path to the project file via the /p: switch of msbuild. My current build line is:
3
1862
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
3643
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 ------------------------------------------------------------ We're hiring! B-Line Medical is seeking .NET
6
1710
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
1339
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 initially added some commandline options, e.g. to specify a configuration file like so
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.