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 5967455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:56:47+00:00 2026-05-22T19:56:47+00:00

I have TFS url, and I have source File location, but I don’t have

  • 0

I have TFS url, and I have source File location, but I don’t have Workspace path.
How to Check out file without workspace, or how to find workspace for some file?

I already make solution for checkout file in TFS, but in some cases I don’t have workspace path or name.

Dim TeamFoundationServerURL As String ="TFS url"

Dim TeamProjectCollection As TfsTeamProjectCollection

'Get project collectio
TeamProjectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection( _
            New Uri(TeamFoundationServerURL), New UICredentialsProvider())

TeamProjectCollection.EnsureAuthenticated()

Dim Workspace As Workspace

' get Version Control
Dim VersionControlServer As VersionControlServer
VersionControlServer = TeamProjectCollection.GetService(Of VersionControlServer)()

'location to check out files to:
Dim WorkspacePath As String = "__I dot have this path ___"

'find workspace
Workspace = VersionControlServer.GetWorkspace(WorkspacePath)

'Check out file
Workspace.PendEdit(SorceFilePath)

Thanks

  • 1 1 Answer
  • 1 View
  • 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-05-22T19:56:49+00:00Added an answer on May 22, 2026 at 7:56 pm

    Check out without a workspace is not possible. So if you need to check out and don’t have any workspace information – you should create a wokspace on demand.
    There’s also an option to get file downloaded without a workspace VersionControlServer.DownloadFile. See http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.downloadfile(v=vs.80).aspx for details. It will not be checked out though (like “view” console command).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a TFS changeset ID, can I find out which other branches
I'm trying to create a CLI command to have TFS check out all files
Background: We have a TFS server setup where me manage our source code and
Does TFS 2010 have the concept of checking out work items and checking them
I have been an avid TFS user since 2005 but decided to skip the
I have a solution checked into TFS. Looking in the source control explorer I
We have a TFS 2008 server that we are using for source control having
I work on a site where none of us have used TFS before, but
I have a zip file that I am checking-in to TFS. The zip file
We have a tfs 2010 setup with some deployment machines running tfs deployer to

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.