I try to manage workspaces in Visual Studio for mac with TFS extension. I don't have any workspace so I click on ManageWorkspaces in SourceControl Explorer. Then I click on add button in order to create a new workspace. It works great until here. I enter workspace name, then I select a working folder. And After I click on OK button, it gives the error that says:
Cannot create the workspace.
value cannot be null.
Parameter name: Computer.
It doesn't go through and create a workspace. I follow the directions in Microsoft link https://learn.microsoft.com/en-us/visualstudio/mac/tf-version-control. But it gives the error above in the manage workspaces section / 6.step
Need help. Regards
Related
We have a development server that is running TFS 2010, it is working fine however we have a bit of issue:
when person X take the latest and build the app , it get checkout abc.csproj application and due to that another person can't take the latest and it shows the error message as.
Here I'm looking for, whenever we modify any changes locally (pages) it should not get checked out & lock by TFS, only in their local repository it changes.
any suggestion would be appreciated.
There are two places you may need to change TFS to allow multiple check-outs.
In Visual Studio, use the "Team" menu, then "Team Project Settings", then "Source Control..." and ensure "Enable multiple check-out" is checked.
In Visual Studio, use the "Team" menu, then "Team Project Collection Settings", then "Source Control..." and ensure that if "csproj" is listed there, it has "File Merging" set to "Enabled".
Running VS 2010, I want to now build on TFS 2010.
Originally I connected TFS server "tfs1". Now I want to map my local path to new TFS server "tfs2".
How to disconnect my old mapping with tfs1?
I got an error:
The path C:\test\xxxAdmin is already mapped in workspace aaa-PC[http://tfs1:8080/tfs/windowsapp]
Thanks.
In the source control explorer for your old server, you can drop down the "Workspaces" list, choose "Manage workspaces," and delete the workspace you no longer want to use.
Most of the time you can go to the directory in question ("C:\test\xxxAdmin") in a VS command window (Start->All Programs\Microsoft Visual Studio 2010\Visual Studio Tools\Visual Studio Command Prompt (2010)) and then enter "tf workspace". Unless things are a bit screwy this will bring up the GUI "Edit Workspace". Find the directory in the "Working Folders" list, select it, and click "Remove".
You should now be able to create the new mapping
Select Manage workspaces and delete the workspace that you don't need.
You can also use tool Tfs Workspace
hey guys,
i am using TFS 2010, i have uploaded content on TFS server, but i dont have any clue about how to download the content from TFS server to local system so that i can check out and check in once i have done editing
Any one know how to do that.. please reply...
i need a step for the same.
Thanks and Regards
Abbas Electricwala
You need to setup a local Workspace (if there isn't one already) and then map your project to a local working directory. From Step 1 of this MSDN article:
You can create a workspace mapping in one of two ways:
* Set the workspace mapping explicitly
* Perform a Get operation on your team project.
To set a workspace mapping explicitly
In Visual Studio, on the File menu, point to Source Control and then
click Workspaces.
In the Manage Workspaces dialog box, select your computer name and
then click Edit.
In the Edit Workspace dialog box, in the Working folders list,
click Click here to enter a new
working folder.
Click the ellipsis (…) button, select your team project (for example
MyTeamProject1), and then click OK.
Click the local folder cell to display another ellipsis button.
Click the ellipsis button beneath Local Folder and then browse
to and select the local folder on your
development computer where you want to
locate your team project; for example,
C:\DevProjects\MyTeamProject1.
Click OK twice to close the Edit Workspace dialog box.
Click OK in response to the Microsoft Visual Studio message box
that informs you than one or more
working folders have changed.
Click Close to close the Manage Workspaces dialog box.
To perform a Get operation on your
team project
In Team Explorer, expand your team project node; for example,
MyTeamProject1.
Double-click Source Control beneath your team project.
In Source Control Explorer, right-click the root folder
MyTeamProject1 and then click Get
Latest Version.
In the Browse For Folder dialog box, select your local path (for
example,
C:\DevProjects\MyTeamProject1) and
then click OK. This maps the team
project root folder within TFS to a
local path on your computer.
I've created a new Team Project in TFS, but when I try to add my solution to it I get:
'Failed to create mapping
Cannot map server path, $/Finance/MyApp, because it is not rooted beneath a team project.'
I can't find anything on google or here that looks remotely like this problem.
I had this issue when using Microsoft's Team Foundation Service from Visual Studio 2012. I had just created the new team project via the TFS website. Although I could see my new project in the 'add solution' window, I got the error the OP reported.
I had to go into the "Team Explorer" window, then into "Connect to Team Projects" and tick the new project. Then I was able to add my solution to the team project.
Is Finance a team project for you?
If not, you can clear the mappings for the workspace or even just delete your workspace.
http://msdn.microsoft.com/en-us/library/54dkh0y3(v=VS.100).aspx
Had the same issue when upgrading project to TFS 2010 from 2008. The solution was to delete the vsssc file in the root of the project folder and re-add it
In my case I had to do Team Explorer and connect to the new project
then I had to close my solution and re-open and then the "add to source control" worked.
--Connect and check project in team explorer window
--Close solution
--Open solution
--retry adding solution to source control
I had this issue with Visual Studio Online's source control, Visual Studio would not recognize the team project even after connecting to team projects, refreshing, restarting Visual Studio. I had to use the "Open in Visual Studio" link from the project on the Visual Studio Online site and then open the solution from there.
Well, i didn't want to do anything so drastic, it turned out that one of my subfolders inside the solution i wanted to add to source control, was mapped inside a different workspace (on a different TFS server). So the solution was to connect to that other TFS server, find and delete the conflicting folder mapping inside that workspace, and try again.
I had the same problem using visual studio 2008 and TFS 2012. In my case, when I manually added the local folder to the project through the workspace mapping, the problem went away.
File -> Source Control -> WorkSpaces -> Edit
Then when I went to add the solution to source control it detected the mapping automatically.
In my case, I copied the folder from "My Documents" to c:\tfsroot where I had mapped the TFS Root. Then when I opened the solution and added it to TFS it worked.
I had the same problem. My solution in VS2017:
Open Team Explorer tab
Select Source Control Explorer
Right click on the top level folder for the project and select "Advanced/Remove Mapping"
Remove the Mapping
Right click on the top level folder for the project and select "Advanced/Map to Local Folder"
Browse to the top level folder with the source code (You may need to adjust the path you selected. It may append a folder name to the end)
Click "Map"
Answer "Yes" to Message Box "Newly mapped items will not be downloaded until you execute a get. Do you want to get $/YourFolderName now?"
That should do it!
I'm able to view the project
1.from the Source Control Explorer but not in Team explorer,Only if i have open the local project which is binded to TFS Only then i can view the other folders within in TFS Project.
2.From Tfs command Line Utility
3.Suppose there are no workspaces and no projects downloaded from TFS then only way to view the project is from the command line Utility.
Is there any way fix this issue.
Right click on the root in the team explorer pane, and select "Add existing team project". You should be able to select the new project from there.
It sounds like a permissions issue. I'm guessing you don't have permissions set up on the Team Project, but you do have read permissions on the source control. Keep in mind that, though the two are related, they are stored and maintained separately in the back-end.