How do we set credentials on TFS? - visual-studio-2013

I am able to create a Team Project Collection on TFS Server. I am also able to add projects to the same using Visual Studio (I'm using VS 2013 ultimate edition). But how do I create/set login credentials for the projects (I do not want users of one project to try accessing the other projects in the same collection).

By default, only administrators will have access to a team project. You can add team members from the web portal by clicking "Manage" next to "Members", or by clicking on the "Settings" gear in the top right and navigating to the "Security" tab.

Related

Add New Branch missing from Visual Studio Devops Work Items

We migrated from Jira to Azure Devops for easier integration for our workflow, and have been managing work items assigned to our team from within Visual Studio.
Once connected to our organisation, developers could open the Team Explorer -> Work Items tab and right click an item to create a branch to start the ticket.
This option has now disappeared from all machines, including mine (I'm the organisation global admin on Azure AD).
As seen:
Previously this menu had a "Add Branch" option which is the only way to create a new branch for a ticket without going through a labourious git sync workflow.
Is there a way to configure which options appear on this menu, or get them all back?
Generally reconnecting your Azure DevOps account from Visual Studio will solve the issue.
For example, just open up Visual Studio, connect to DevOps, and clone a project, it opens the folder view. You can then switch to solution view. If you go through that process, you can right-click and have the missing options for work items appear.
Or just reconnect your ADO account, then open a version control solution from Team Explorer or just click "Continue without code".

Import project to Visual Studio online

I am working on a Xamarin.Forms project in Visual Studio and have recently got another laptop. I would like to be able to edit the project when using my work laptop so I searched online and found Visual Studio Online.
The problem is I don't know how to import my current project into the Visual Studio online to get it on the other laptop. I have tried watching tutorials but all others explain how to create a new project and couldn't find any tutorials online that explain it easily.
The first step is to sign up for Visual Studio Team Services and create a new project:
Make sure you select Team Foundation Version Control during this step.
Once the project is created, you can head over to Visual Studio and make sure you're connected to TFS (Team Foundation Server).
Open the Team Explorer panel if it isn't already open (you can find it in View->Team Explorer) and click "Connect"
Once you do that, a window will open that will allow you to sign into your Microsoft account that you used to create the TFS server. Once signed in, you can select your project and click "Connect"
Your project should open in the Team Explorer panel where you should then click "Configure Workspace"
Click "Advanced Options" and then change the Local Folder to point to the folder that contains the solution you want in source control.
Click okay and say no when it asks you if you want to get latest from source control.
You can now go to the "Pending Changes" page in the Team Explorer and click on "Detected XX add(s)" and then click "Promote" in the resulting dialog.
The final step is to add a comment and check in everything!
Your code is now in source control!
From here you can proceed like normal in setting up TFS on your new computer and getting your code from TFS!

Unable to delete team project in Visual Studio Online

I am using VisualStudio.com to manage my team projects which use TFS source control. However, I am unable to delete any of my projects. The steps I have taken so far are:
Log in to my VSO account and click the cog icon to go into admin mode. Click into a projects "Project Security and team membership page". In the permissions sections, set everything, including Delete Team Project to be allow, I saved this.
Next I go into the overview tab and I bring up the context menu for my project. It has two options, "set team as project default" and "delete", both of which are disabled options.
Follow the steps below to delete a project:
Open your VSO account from web portal without any project specified. (https://YourAccount.visualstudio.com/)
Click cog icon to open the Collection Control Panel.
Click "Manage collection security and group membership" link.
Check and make sure you have enough permission to delete a project on "Security" page.
Go to "Overview" page and expand the context menu for the project you'd like to delete.
Click "Delete" to delete the project.

Is there a way to easily share Workspace settings (folder mappings) for Visual Studio Online / Team Foundation Server?

I want to move from having a single Visual Studio (Online) workspace for all my Projects to having a separate Workspace for each Project (because: http://blogs.msdn.com/b/phkelley/archive/2013/05/30/using-multiple-workspaces-with-visual-studio.aspx).
This all works out fine, but now I want to roll out this new approach to my colleagues and have come across the problem that it looks like there is no easy way to share Workspace settings with them.
Here is the official advice from an MSDN article for VS 2013 titled "Create and work with workspaces":
Q: Can I reuse and share folder mappings?
A: Yes. If you want to reuse or share folder mappings with other team
members, you can copy the folder mappings. Simply open the shortcut
menu in the Working folders list and choose Copy. To reuse the folder
mappings, paste them into another version control workspace or a build
definition workspace. To share the folder mappings with your
teammates, paste them into a text file and then share the file.
source: http://msdn.microsoft.com/en-us/library/ms181383.aspx#copy_paste
I think the answer should have been "No. There is no way exporting and importing Workspace folder mappings". The suggestion to "paste them into a text file and share the file" is simply hilarious.
My research has turned up that for the server version of Team Foundation Server there is a thing called workspace templates:
With workspace templates you can provide your developers with a
standard way of organizing their workspace. Your whole team uses the
same structure and enjoys all the benefits.
http://roadtoalm.com/2011/10/25/hidden-gems-in-tfspart-6-managing-workspaces-in-tfs-with-workspace-templates/
As far is I know this is not available in Visual Studio Online (the cloud version of Team Foundation Server).
So my question is:
Is there a way to easily share Workspace settings (folder mappings) for Visual Studio Online / Team Foundation Server?
If not, does anybody know of a better way than the copy / paste / share suggestion?
I'll answer my own question: yes, there is an easy way.
Install "Microsoft Visual Studio Team Foundation Server 2013 Power Tools": https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f
After installing you will have a new option in Team Explorer: Team Members. Click it.
Click "Team Utilities".
Click "Add Template".
Select the Workspace you want to create a template for and click "Create".
Review the settings of the template and click "Create".
Your new template will be appear under "Workspace Templates" for all other team members after they have installed the Power Tools. When they click the template a Create Workspace dialog will open, based on the settings in the template.
Thanks to #EdwardThomson for pointing me in the right direction.

Visual Studio 2012 TFS

I have created a project in VisualStudioOnline and then I added my solution to Source Control in TFS. Now I am using other computer and I want to continue my work. How can I load my project in VS2012? I am connected to TFS but I can't open my solution.
If you are using Git then you need to open Team Explorer in visual studio and select "Connect". Your VSO account should be listed, if not add it, and you can select your team project. Once connected you should see a list of Git repos. Select one and click "clone"
If you are using TFVC you will need to select "Source explorer" and map your workspace locally. You should, once connected, see the solutions listed at the bottom of the UI. Just double click to map a workspace and open...

Resources