Cannot Create Workspace In Visual Studio For Mac

  1. Open Eclipse Workspace In Visual Studio 2017
  2. Visual Studio Community For Mac
  3. Workspace In Visual Studio
  4. Microsoft Visual Studio For Mac

← Azure DevOps (formerly Visual Studio Team Services) Create multiple workspaces with the same name on different machines If you connect to TFSPreview server you cannot create a workspace with a same name created in other machine.

.NET Core 3.0 launches at .NET Conf 2019 September 23-25, a free, virtual developer event.
Save the date
  1. TFS Version Control. Cannot create the workspace. Please, try again. Server was unable to process request. ---> TF400367: The request could not be performed due to a host type mismatch. Please check any connection information and verify the information is correct. Visual Studio for Mac community can not sign in VSTS.
  2. Visual Studio dev tools & services make app development easy for any platform & language. Try our Mac & Windows code editor, IDE, or VSTS for free.
  3. Hi, I'm able to connect to my VSTS team solution and see all the directories that lie within it. However, when I follow the steps for creating a workspace, I keep getting the error: Cannot create the workspace.
  4. I have installed visual studio mac on my mac. I have installed the tfs extension on visual studio mac. I have connected to the tfs server in our server in office. It successfully connected and it display the collection. BUT it says it has 0 projects. There should be 4 projects in that collection. User has admin permissions so it shouldnt be the case.

Best-in-class tools for any developer

Editing and debugging on any OS

By using VS Code you agree to its license and privacy statement

End to end developer services for mobile and desktop apps

Editing and debugging on any OS

By using VS Code you agree to its license and privacy statement

Develop apps for Android, iOS, Mac, Windows, web, and cloud

Write your code fast
Debug and diagnose with ease
Test often, release with confidence
Extend and customize to your liking
Collaborate efficiently

More about Visual Studio
More about Visual Studio for Mac

Code editing, redefined

Edit and debug apps on any OS
Built-in Git support
Over 10K extensions
Free and built on open source

Formerly Visual Studio Team Services (VSTS)

Agile planning
Social coding with Git
Continuous integration and delivery
Any IDE/editor and language

End to end developer services for mobile and desktop apps

Build on every commit
Test on 1000’s of real devices
Deploy instantly to user devices
Monitor crashes, errors and analytics
Engage with push notifications
Manage your backend with Auth and Data sync

Upskill yourself with new benefits

Master R, Python and data science with DataCamp
Grow your network, get insights, add skills to advance your career LinkedIn Learning

Fully featured IDE for Android, iOS, Windows, web, and cloud

A powerful editor that’s free, open source, and runs everywhere

By using VS Code you agree to its license and privacy statement.

Be Agile, unlock collaboration and ship software faster

End to end developer services for mobile and desktop apps

The past couple of posts I’ve made focus on workspaces and the differences between server and local workspaces. Visual Studio and TFS version control are designed to support the use of multiple workspaces on the same machine, but many customers use only one workspace. Depending on your situation, you might be missing out on a better user experience by limiting yourself to just one workspace!

The Manage Workspaces dialog

Let’s look first at the Manage Workspaces dialog, which is used to look at all the workspaces on the current machine.

The Manage Workspaces dialog can be accessed through the following methods.

  1. File menu –> Source Control submenu –> Advanced –> Workspaces…
  2. Launch the Source Control Explorer. On the toolbar, there is a “Workspace:” combo box. Open the combo box and select “Workspaces…”.
  3. (In Visual Studio 2012 and later.) Open the Pending Changes Page in the Team Explorer. From the Actions menu, select “Manage Workspaces.”

The Manage Workspaces dialog shows, by default, those workspaces on the local computer to which you have access. Most of the time that means that the workspaces belong to you. But if you’re on a shared machine and someone has created a public or public-limited workspace, then those workspaces will show up in this list as well.

You can check the “Show remote workspaces” checkbox at the bottom to refresh the list of workspaces and have it show instead all workspaces, on any machine, where you are the owner of the workspace.

Studio

From this dialog box, you can add new workspaces, delete existing workspaces, or edit workspaces you already have to change their properties. The properties which you can change are summarized in a previous blog post on workspaces.

Switching between workspaces

You may recall that each workspace has its own set of working folders (also called mappings) and pending changes. The Source Control Explorer and Pending Changes Page in the Team Explorer each allow you to switch between workspaces so that you can see and manipulate the pending changes in each workspace. (In Visual Studio 2010 and earlier, the Pending Changes toolwindow also allows you to switch between workspaces.)

This screenshot shows the controls which allow you to select your workspace in the Source Control Explorer and in the Pending Changes Page of the Team Explorer. All the workspaces on the local machine to which you have access are available in either drop-down.

When you select a different workspace, you may notice that the Source Control Explorer’s left and right panes have some items change from grey to black, or black to grey. This is because the workspace you switched to may be mapping more items, fewer items, or an entirely different set of items with its working folders. The Local Path hyperlinks above the right pane may change accordingly as well.

In the Team Explorer’s Pending Changes Page, when you select a different workspace, the set of pending changes, your pending check-in comment, associated work items, etc. will all switch as well. Everything is preserved; you can toggle right back when you want to. Keep in mind, though, that a solution cannot span multiple workspaces and is always ‘in’ a particular workspace.

Scenarios for using multiple workspaces

Many customers using TFS version control use branching and merging to control code movement and perform servicing on existing releases. For example, there might be a Main branch located at $/Project/Main, and several branches for different releases also located underneath $/Project, such as $/Project/Release1, $/Project/Release2. Often there is also a development branch called $/Project/Development.

Machine

Open Eclipse Workspace In Visual Studio 2017

Customers commonly create just one workspace on your machine that maps $/Project to a location on disk like C:Project. In the example described above, that results in all four branches coming down to the local disk in the same folder. The engineer who does this might be working almost exclusively in the Development branch, and they end up having 4 times as much source code downloaded to their machine. If they end up having to make a change in the Release2 branch to fix a production issue, they will find their pending changes for Development ‘mixed in’ with their Release2 changes.

It’s much less error-prone to compartmentalize the branches by creating one workspace for every branch. In this particular scenario the customer might create four workspaces, instead:

Visual Studio Community For Mac

Workspace name

Mappings

PHKELLEY-DEV_Main$/Project/Main –> C:ProjectMain
PHKELLEY-DEV_Release1$/Project/Release1 –> C:ProjectRelease1
PHKELLEY-DEV_Release2$/Project/Release2 –> C:ProjectRelease2
PHKELLEY-DEV_Development$/Project/Development –> C:ProjectDevelopment

This allows work to go on in each branch separately. If you are in the middle of a change in Development but are interrupted and have to make a change in Release2, then just close your copy of the solution from the Development branch and open your copy from the Release2 branch. This action will automatically switch the Pending Changes Page and Source Control Explorer’s workspaces to match the solution’s workspace. All your work from Development is still there and untouched; you can use the Release2 workspace to commit your change there, and then switch back to Development just as easily as you switched to Release2.

Performing integrations

Some customers have mentioned that the reason they map all their branches in the same workspace is to perform integrations (merges) from branch to branch. You can still merge when using multiple workspaces described above. You always want to be performing the merge in the target branch – if I’m integrating from Development to Main, then the workspace selected should be PHKELLEY-DEV_Main, since that’s where changes are being pended and that’s the branch to be modified with a check-in. The source branch doesn’t have to be mapped in the same workspace (or mapped at all!).

Workspace In Visual Studio

Performance benefits

Microsoft Visual Studio For Mac

If you’re using local workspaces, then you can see some performance benefits by switching to using “one branch one workspace”. Local workspaces are intended for customers with small to medium size projects where the workspace has 50,000 or fewer items. I have seen customers where each branch of their source code is well within our scalability target for local workspaces – but the customer has placed several branches of source code all in the same workspace. The total number of items then ends up being far beyond 50,000, and performance suffers or “TF400030: The local data store is currently in use by another operation” errors are observed. Simply separating out the branches with a “one branch, one workspace” philosophy brings them back within the scalability target and they end up being much happier.