Windows环境下TEE-CLC配置TFS与VS Code遇工作区问题求助
Hey there, let's figure out why you're hitting that workspace not found error with TEE-CLC. The error message clearly states no matching workspace exists for your user on your current computer in the target TFS collection, so let's go through the most likely fixes step by step:
1. You haven't created a workspace yet
The tf workspaces command only lists existing workspaces linked to your user/computer/collection. If you just accepted the EULA and haven't set up a workspace on this machine yet, this error is expected. Here's how to create one:
- First, create the workspace itself:
Replacetf.cmd workspace /new /collection:http://[...]/tfs/DefaultCollection MyWorkspaceMyWorkspacewith a name you prefer - Then map a TFS server path to your local folder (this links the remote project to your machine):
Replacetf.cmd workfold /map $/YourProjectName C:\Path\To\Your\Local\Folder$/YourProjectNamewith the actual server path of your project, and the local path with where you want to store files
2. Your workspace exists on another machine/under a different user
The error specifies it's looking for workspaces tied to your user account on your current computer. If you previously set up a workspace on another machine or used a different TFS account, it won't show up here. In this case, your best bet is to create a new workspace on your current machine (following step 1 above) — sharing workspaces across machines can cause sync issues, so it's not recommended.
3. EULA acceptance didn't fully take effect
Sometimes after accepting the EULA, you need to close and reopen your command prompt to ensure the TEE-CLC loads the updated configuration. If you ran the workspace command in the same window where you accepted the EULA, try restarting the terminal first before creating a workspace.
4. Double-check your TFS collection URL
A typo in the collection URL can also lead to this error. Verify that:
- The URL uses the correct protocol (
httpvshttps) - The server address and port are accurate
- The collection name (like
DefaultCollection) matches what's configured in your TFS instance
You can test the URL by pasting it into a browser to confirm you can access the TFS collection page.
Once you've created the workspace and mapped the paths, running tf.cmd workspaces -collection:http://[...]/tfs/DefaultCollection should display your new workspace without errors.
内容的提问来源于stack exchange,提问作者Jummi




