locked
text search in tfs at root level RRS feed

  • Question

  • Hello - My company has a large TFS structure and my team has a requirement to replace references to one site domain with references to another site domain.

    I was trying to see if there was a way to do this search through TFS itself.  In VS, Edit > Find and Replace > Find in Files only searches the sln open in VS which does not satisfy my requirement.  File > Source Control > Find in Source Control > Wildcard opens a Search window with Recursive checked by default.  However, this search only appears to search file and folder names but not file contents.  For example, a search for "string" at the TFS root level should return hundreds of references but only returns a reference to a folder named "string".

    So is there a way to do a full recursive search for text within the files from the root level of TFS?  The ways I described above don't seem to accomplish my goal unless I'm missing something.  I'm guessing someone here has had a requirement to something similar to this before....

    • Moved by Ego JiangModerator Tuesday, October 23, 2012 8:31 AM It is a tfs issue (From:Visual Studio Extensibility)
    Friday, October 19, 2012 8:59 PM

Answers

  • Hi dotnetteramg,

    Thank you for your post.

    Find in Source Control is used to search by the file name in the TFS version control.

    If you want to search the content of the source code in the TFS version control, you can just use the TfsSearchCode to do so, please see: http://tfssearchcode.codeplex.com/

    I hope this information will help resolve this issue.

    If anything is unclear, please free feel to let me know.

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, October 23, 2012 9:00 AM
    Moderator

All replies

  • From your description, it sounds like your only options is to search through the file system of your TFS server. This article might be of value to you:

    http://stackoverflow.com/questions/41039/find-in-files-search-all-code-in-team-foundation-server

    I've used the C22Project which it mentions in the past and it worked extremely well for me. It's a little outdated now it appears, but could probably be just as usefule:

    http://code.google.com/p/cs2project/

    Monday, October 22, 2012 4:10 AM
  • Hi dotnetteramg123,

    Based on this case relate to TFS, I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, October 23, 2012 8:29 AM
    Moderator
  • Hi dotnetteramg,

    Thank you for your post.

    Find in Source Control is used to search by the file name in the TFS version control.

    If you want to search the content of the source code in the TFS version control, you can just use the TfsSearchCode to do so, please see: http://tfssearchcode.codeplex.com/

    I hope this information will help resolve this issue.

    If anything is unclear, please free feel to let me know.

    Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, October 23, 2012 9:00 AM
    Moderator
  • Hi dotnetteramg,
     
    I mark useful reply as answer. It will be very beneficial for other community members having the similar questions.

    If anything is unclear, you can unmark the post, and please free feel to let me know the problem.

    Best Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

    Friday, October 26, 2012 6:24 AM
    Moderator