Disappearance of git repositories in Visual Studio 12 - visual-studio

I have been using Visual Studio (12) with Test Complete for a few years and had several cloned git repositories. I was using the Visual Studio GUI to connect, commit and pull. I would access it by doing a "TEAM -> Connect to Team Foundation Server" and I could choose from the clones repositories. Today when I do it there is none there (see image):
I did some Googling and talked to a coworker who does the same thing. He told me under Tools->options->source control to add "Microsoft GIT Provider" which must have been what I had had. So I went to the menu (see below). "Microsoft GIT Provider" is there and I can click but it doesn't change in the menu (I can't actually select it though it is there). See picture below (and I apologize for the writing but Snipping Tool does not have Text Input):
I did get a git bash window and go to the directory and was able to do a "git status" which means the repositories are actually still there so it must be a VS issue. I have Visual Studio Professional 2012, version 11.0.50727.1 RTMREL. Several items are listed. The ones with Visual Studio are "Visual Studio 2012 Code Analysis Spell Checker" and "Visual Studio 2012 Share Point Developer Tools" and "Microsoft Visual Studio Tools for Applications 2012"
Any idea what may have happened? GIT provider got uninstalled somehow or what? I am not sure. I guess I could do things from the command line. Push and Pull are straightforward but some others are more complicated and it is much simpler to do from GUI.
Any Ideas?

Related

Visual Studio 2022 Missing Many View | Other Windows

I just installed Visual Studio 2022 Community Edition. It is missing many items and is not really usable.
For example, under View | Other Windows, there are just three items:
Stack Trace Explorer
Package Manager Console
IntelliSense
There should be many more. In particular I installed the Python Development workload, and I later installed the VS History 2022 extension. (Both show in the installer.) The Python Environments window and the Visual Studio File Histories window should be there, but they aren't. Alt-I should bring up the Python Environments. It just dings.
I have checked the installer. Python development is checked. Python is, in fact, installed. It is at:
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Microsoft\Python
There is no Git on the toolbar.
Under Tools | Options there is nothing for Git, Python, or VS History Files as there is for Visual Studio 2019.
In addition there is no External Tools option under the Tools menu as there is for Visual Studio 2019.
In the lower right where it should show the Commit button (for a solution which has a Git repository) there is "Add to Source Control" (which does nothing).
I have Googled and found no one else with these problems. There are plenty of articles, such as how to use the Python Interactive window and Tools | External Tools explicitly mentioning Visual Studio 2022. So it must something I have not done, but I cannot find it nor determined how to fix it.
I have restarted the computer several times. It has not fixed it.
I have been using Visual Studio since at least Visual Studio 2008 and am an experienced user. I have never had these kinds of problems installing the next version. I am able to work on a Windows Forms project, at least to build and run it (but not to commit the changes). I do not seem to be able to do anything else.
Any help would be appreciated.

Visual Studio 2013 Crashing When Opening Team Explorer

After opening Visual Studio 2013 successfully, I switch to the Team Explorer tab and consistently get a popup error dialog saying that, "Microsoft Visual Studio 2013 has stopped working" and "Windows is checking for a solution to the problem".
This seems to be directly related to TFS (2013 Update 4) since other tools that access TFS (like Source Control Explorer > Workspaces...) also cause the crash.
Edit: I have already tried a VS 2013 Repair. This took all morning with no different results.
This is frustrating because I cannot use TFS outside of the command-line tools. Any help would be greatly appreciated. Thank you.
Credit to Tuğrul Emre Atalay for the post: Visual Studio Crashing When Checking In.
His issue was checking in changes and having Visual Studio crash. In my case, just using the TFS tools was consistently causing a crash.
The fix for me was to only clear out the local cache and not both the server and local caches.
Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache.
I cleared this folder and I was able to use all of the TFS tools without any further issues.
I then realized that this happened since migrating to a new user name. I had copied many of my settings over from my old account folder and it must have corrupted the cache area.
I had the same issue with Visual Studio 2015 Enterprises. When i open it, VS wasn't able to connect to TFS and it crashed when i clicked on "manage connections"
The issue was not about the cache (I cleared the cache, made a repair of VS and nothing changed) but about the fact that we are currently migrating our projects from perforce to Git with Team Foundation Server.
When Visual Studio starts, it seems VS is trying to connect to TFS with linked Git repositories, but since the plugin currently used is perforce, it causes an exception somehow.
The solution is to set your source control plugin to Microsoft Git Provider (or Visual Studio Team Foundation Server if you are using it)
Here's two screen shots I took. Right after I selected the Microsoft Git Provider, the Team Explorer tab automatically refreshed and I am now able to connect to my projects.
Go to Tools -> Extensions and Updates Look for Github Extension for Visual Studio and Uninstall it
Never Mind as you can still work with Github
Now Restart Visual Studio.
Enjoy working on Team Explorer.

TFS Windows Explorer Integration - Getting version history outside of VS

I worked for year using CVS source control with Windows Explorer integration using TortoiseCVS which enabled me to view the history of my files in a graphical way and allow me to compare any 2 versions of the file without the need to open IDEs.
Lately I started working in a new place that uses TFS which require me to open Visual Studio every time I want to see the file history.
It would be great to have this level of integration between TFS and Windows Explorer. I wonder if any third party has developed such functionality?
Currently I use C# with Visual Studio 2013.
This is what I see when I choose Revision Graph:
Shell integration can be installed as part of the Visual Studio Power Tools for Team Foundation Server 2013. Make sure you check the "Windows Shell Extensions" option.
To see the revision graph, I am afraid you still need to open Visual Studio and use the Track Changeset feature which seems the closest as far as I can tell.
That and the "Incoming Changes" codelens that was added to Visual Studio 2013 Ultimate and which is going to be part of Visual Studio 2015 Professional and up.

Visual Studio 2010/2012 Git Plugin

I am looking for suggestions for a git integration with VS 2010/2012 that allow developers use the basic operations (commit, push,pull,switch branches, tagging)
There are several:
Git Source Control Provider
Visual Studio Tools for Git a.k.a. Microsoft Git Provider from Microsoft.
Git Extensions
1 and 2 gives you deep integration with the source control UI of Visual Studio, like padlock icons on files:
1 uses the ordinary Pending Changes tab, but adds some functions, like Switch Branch:
2 surely represents the future of Git integration in Visual Studio since Microsoft is behind it.
Note that 2 requires Visual Studio 2012 (with update 2 even), so if VS2010 support is a requirement you cannot use it. 2 is built into Visual Studio 2013
However, it sounds like you might prefer 3. Git Extensions is simpler and just gives you a simple toolbar with commit, pull, push, stash (not switch branch, though):
Visual Studio for Git with VS 2012, it's matured now (version 1.0).
I like deep integration with VS 2012 especially switch between branch seamlessly, you will work with any branch at any time.
Another thing is that it's working very well with Bitbucket.

How do I select Visual SVN as my source control provider

I am using Visual Studio Ultimate which come with TFS. However I am using Visual SVN as my source control.
I have installed VisualSVN server and the Visual Studio plug in.
What should I do to switch from TFS to Visual SVN.
When I go do Tools/Options/Source Control/Plug-in selection, I have the choice between "None" and TFS.
VisualSVN automatically "just works" when you open a SVN working copy - you don't need to mess with Visual Studio's SCC plugin settings. So you need to look at migrating your source code code into the SVN repository first. When you've done this, just check it out, open the solution and you're done. (You may want to remove all the "SccProjectName/SccProvider..." garbage from your project files beforehand)
To migrate your repository history from TFS to SVN, there's the TFS2SVN project (I've not used it though).
If you're not stuck on VisualSVN, try AnkhSVN. We use that here, and had no issues in getting it to work with VisualStudio 2010.
AnkhSVN is an open source plugin, so there's no need to pay for a license.
If VisualSVN is like AnkhSVN, you need to in tall VisualStudio first, then AnkhSVN. Then go into VisualStudio and select SVN in the Source Control Plug-in selection.

Resources