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".
Related
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!
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...
So I've built my project and I want to use the VS2008/2010/2012 "Publish To File System" option in Visual Studio 2013 Preview to push my project to a staging server for testing... but I can't find it anywhere in any of the menus.
It's bad enough that they've randomly rearranged the menu structures and items for TFS, but this change basically makes it impossible for me to recommend 2013 to anyone, much less the CTO, as an upgrade path.
This can be accomplished easily:
Right click on project in Solution Explorer
Click Publish
Under Profile select <New Custom Profile...>
Create profile name (can be anything, dev.domainname.com)
Under Connection > Publish Method > select File System
Enter the Target location \\server\sharedfolder\
The rest of the settings are common as they were in the past.
The next time you go to publish just select the profile and you are done.
With two other people looking over my shoulder and making random suggestions, we finally stumlbed across the answer. It turns out that VS2013 requires you to create a New Profile for each and every publish you make for each and every project in your solution. Hmm. :-\
FYI, running Visual Studio 2013 Update 5 the publish web dialog looks a bit different, screenshot below:
Choose "Custom"
Give the profile a name and hit OK.
Select "File system" as the preferred publishing method...
The first time in to VS 2013 you will not have a "New Profile" option as described by KeyOfJ.
This worked:
Right click on project in Solution Explorer
Click “Publish”. A “Publish Web” dialog box pops up.
Under tab “Profile”, in “Select a publish target”, select “Custom”. A “New Custom Profile” box pops up
Enter a “Profile name” and click “OK”
In tab “Connection” under “Publish Method”, choose “File System”
In tab “Connection” enter a “Target location”. Click “Next”
Under “Settings”, click on “File Publish Options”. Click “Next”
Click “Publish”
Next time you want to publish this project, VS. 2013 will default to the Profile name you just entered, and you will be able to publish in one click.
Can you find Team Explorer? View -> Team Explorer.
Click Commits, and you can see "Publish to Remote Repository". Type in TFS URL or other Git repo to upload your project.
You can create a fake web connection and then reenter data, selecting Local File System.
Today I checked out a new project in TFS (Visual Studio 2010): Which, if any, folders do I need to create before checking out a TFS project?
The .sln file wouldn't save (said it was read-only, and even when changing that in Windows Explorer, it made no difference).
So, I created a new folder, created a new .sln, and then copied all the other files over to that structure.
Now, somehow, TFS has "given up the ghost" On connecting (I do seem to connect, I can see the projects in the Team Explorer pane), when I 2-click the "Source Control" item below a project, I get, "Team Foundation Server is not your current Source Control plug-in. Click here to set the current Source Control plug-in."
If I do fall for its ploy, I then see, "Error Command "Tools.Options" does not accept arguments or switches."
What in blue blazes is going on?!?
I reinstalled ("repaired", as that was the only option other than uninstall) MSSCCIProvider, but that did no good - I get the same errors. How can I get TFS back?
UPDATE
I am connecting to TFS, because when I open VS and select the "Connect to TFS" (verbiage?) link, it opens the Team Explorer tab, with a visual representation of the TFS server, with the various "areas" below that, and then, for the area I'm currently working on:
Handheld
> Work Items
Reports
> Builds
Source Control
...but when I mash "Source Control," it tells me, "TFS is not your current Source Control plug-in. Click here to set the current Source Control plug-in."
But that's a bait-and-switch, because when I do (click there), I get the err msg, "Error< crlf > Command "Tools.Options" does not accept arguments or switches."
As per my comment, it looks like you have the wrong source control plugin enabled in Visual Studio. In visual studio go to "Tools", "Options", "Source Control"
Make sure that the "Current source control plug-in" is set to "Visual Studio Team Foundation Server"
You should now be able to use Team Explorer to manage your code in TFS
I opened a solution in offline mode. But now I am trying to go online and connect to tfs but I cannot seem to see the "Go Online" Button under File-> Source Control.
I connected to TFS using Team-> Connect to Team Foundation Server option but I still don't see "Go Online" button in File-> Source Control.
Is there any other way to go online in TFS?
Version used : Visual Studio 2010 Ultimate, connecting Team Foundation Server 2010.
I found out that the "File > Source Control > Go Online" menu item doesn't appear when the "Source Control Explorer" window is active.
So you will have to open a different window and\or file.
In my case, when I opened a .cs file within a project of the open solution, the "Go Online" menu item was available once again.
Try File > Source Control > Change Source Control, and then bind your solutions/projects.
You may have to delete the bindings of existing projects that failed to bind correctly.
Then close the binding dialog.
Now you can add each of the disconnected projects from your solution explorer.
This ranges somewhere between buggy and pathetic, but if you click around on sufficiently many seemingly unrelated menus, context menus, and dialogs, you may guess how to repair the TFS connection like this
This is not ideal, but another option is to close Visual Studio and open it again.
In my case whenever I get disconnected (we use TFS online) then after a drop in connectivity my VS thinks it is still offline, I cant convince it otherwise so when I restart VS it then forces it to check connectivity and then my solution is automatically back "online".
I faced the same problem when i worked on my solution when i was disconnected from tfs.
I unloaded and loaded the project i worked offline and suddenly go online option showed.
I think doing that checks out the project so that unknown bindings are removed.