473,800 Members | 2,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

way to find dead files?

Is anyone aware of an easy method to search a solution for dead source
files? I'm not talking about files that show up as little white boxes
when you check the "Show All Files" button on the toolbar. Rather, I
want to delete all source files that aren't referenced by any project.

Oct 25 '07 #1
2 1173
I don't think there is a way that is built into the system, but you
could parse the .csproj file (it is XML) and get the list of files that are
used by the project. Then, you can compare it to what is in the directory,
and clean away.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"not_a_comm ie" <no********@gma il.comwrote in message
news:11******** **************@ e9g2000prf.goog legroups.com...
Is anyone aware of an easy method to search a solution for dead source
files? I'm not talking about files that show up as little white boxes
when you check the "Show All Files" button on the toolbar. Rather, I
want to delete all source files that aren't referenced by any project.
Oct 26 '07 #2
<Project >
<ItemGroup>
<Compile Include="Class1 .cs">
</Compile>
<Compile Include="Class2 .cs" />
<Compile Include="Class3 .cs" />
<Compile Include="Progra m.cs" />
<Compile Include="Proper ties\AssemblyIn fo.cs" />
</ItemGroup>
</Project
parse the .csproj file using xml and u can delete the others file

"not_a_comm ie" wrote:
Is anyone aware of an easy method to search a solution for dead source
files? I'm not talking about files that show up as little white boxes
when you check the "Show All Files" button on the toolbar. Rather, I
want to delete all source files that aren't referenced by any project.

Oct 26 '07 #3

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

Similar topics

4
4906
by: Paul Schmidinger | last post by:
Hello, I have a windows-IIS-Webserver running PHP 4.3.0. However, there is no GD-Lib, so I tried to install it. What I did is this: - copy the file php_gd2.dll (which I have from another win-webserver with working GD-Lib) to C:\PHP\extensions - set the extensions-folder in php.ini to C:\PHP\extensions - remove the ";" before the php_gd2.dll-inclusion in the php.ini-file
4
2291
by: Christian Tismer | last post by:
Dear Former Stackless Users, I have to use this list to announce something really bad to you, since all the Stackless lists are defunct: The Stackless project is finally dead, now and forever. If this doesn't affect you, please don't worry and just ignore it. I don't take any responsibilities for any harm brought to you, your family or your descendants
0
2935
by: TX-DBA | last post by:
#####Background 1) CRONJOB runs 2 RMAN shell scripts at 3AM backup_begin.sh- export and rman backups report_begin.sh- list rman reports My report_begin.sh script, which was messed up, was sending/writing the dead.letter info to the RMAN backupset peices, thats correct! It was over-writting them and giving a new file timestamp which was newer
3
1608
by: Donovan Martin | last post by:
Detecting dead headers is an extremely tiresome and lengthy process. Is there an automated utility available which might do this for me? That is, some utility that will check my .cpp and .h files and determine which headers that are referenced are unnecessary?
4
2288
by: Jason Shohet | last post by:
I'm using Visual Studio, with ASP.NET. Is VSS on a separate CD. Also, is it possible to use the VSS beta (2005) with .NET if I'm not using the .NET beta. And finally, where do I get the VSS beta... when I go to msdn, it just directs me to a page with Whidbey downloads.... nothing mentioned on VSS TY Jason Shohet
3
2576
by: Sloan.Kohler | last post by:
Is Jython development dead or has it just seemed that way for over a year?. The jython.org website has a recent new appearance (but no new content) and there is some message traffic on the developer site at Sourceforge. However nothing has been released for over a year (i.e. no support for Python 2.3, 2.4 or 2.5). Is seems that IronPython may have a better future than Jython. I know this is a bit of a troll but I'm concerned about...
23
2133
by: Douglas Eagleson | last post by:
C used to allow the function as th elogical assembly.. And now ANSI and others have develope a variant that thrives on criminal falsehood. An if statement in a while loop must function. or you have changed the if logic. It is a major fallacy to claim the if as abstract in all usage. A certain usage used ot be allowed so the fallacy did something neet. Now the Visual 6.0 enforece predicate test the geniuses theory.
3
3474
by: jmark | last post by:
I am currently running php 4.4.7 in windows xp and apache 2. If I enter php in command line. I get the following error The application has failed to start because php5ts.dll was not found" I have installed both php5 and php 4.4.7 but I am not running php5 as I have all the entries in httpd.conf related to php5 commented out. I also do not have anything pointing to php5 in my environment path if I type php -i
6
7762
by: sanjay | last post by:
Hi, Is there any tool that would do static detection (doesnt execute the application) of dead code for C++ application. Few tools do show which code flow would never get executed, but i am looking for some tool which would detect any functions that are never used at all? or any classes that are created but not instantiated. This is required for an application which includes hundreds of C++
0
10501
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
10273
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5603
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2944
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.