Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:58:21+00:00 2026-06-10T10:58:21+00:00

In Visual Studio 2010 I have a large solution that contains number of .cs

  • 0

In Visual Studio 2010 I have a large solution that contains number of .cs files that are no longer used (not referenced in .csproj), but still present in code repository (ClearCase). Do you know of any tool / extension / script that would find all such files?

One could write a script that goes through all projects’ directories, takes all files that are checked in and than compares against content of a project file. In it is not there, than we have a candidate for deletion. It is not too exotic, so I wonder whether such a script already exist. Otherwise it will be a good occasion to get dust off my Python book.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:58:23+00:00Added an answer on June 10, 2026 at 10:58 am

    The only script already discussed on SO was “Visual Studio macro: Find files that aren’t included in the project?“.

    It could be completed with a cleartool command in order to :

    • checkout the parent directory
    • cleartool rmname -force the_file (which allows to force the delete)
    • checkin the parent directory.

    Since it is a bit cumbersome, another approach would be to:

    • run the script and delete the unused files (simple OS delete, nothing to do with ClearCase)
    • import the result back into ClearCase (with clearfsimport), using a -rmname option: that will automatically delete the target files which are no longer present in the imported source (ie the one where you executed your cleaning script).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Visual Studio 2010 solution that contains a class library (ProjectA) and
In my Visual Studio 2010 project I have files with .mm file extension, that
I have a large-ish Visual Studio 2010 solution (~110 C# projects). One project (let's
We have a rather large VS 2010 solution that contains several C++ projects depending
In a C# (visual Studio 2010) project, I have a class with large number
Visual Studio 2010 RC -> Silverlight Application We have a library of images that
I have a Visual Studio 2010 solution with 5 projects in it, two libraries
I have created a Visual Studio 2010 ASP.NET Web Application. I've noticed that if
I have a web application solution existing under Visual Studio 2010. Part of this
I have a semi-large C# .exe project in visual studio 2010 Ultimate, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.