Visual Studio For Mac Github Extension

Active1 month ago

The newest release of Git Extensions supports Visual Studio 2010 now (along with Visual Studio 2008 and Visual Studio 2005). I found it to be fairly easy to use with Visual Studio 2008 and the interface seems to be the same in Visual Studio 2010. One place for all extensions for Visual Studio, Azure DevOps Services, Azure DevOps Server and Visual Studio Code. Discover and install extensions. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. Download Visual Studio Code - Mac, Linux, Windows This site uses cookies for analytics, personalized content and ads.

How to connect Visual Studio Code on mac with Team Foundation Server(TFS).

Or any other way to connect with tfs?

Pritish
PritishPritish
1,0132 gold badges10 silver badges32 bronze badges

4 Answers

This are the steps to effectively connect a TFS (TFVC) Repository to your VS Code on Mac:

INSTALL THE SOFTWARE

  1. Install Visual Studio Code for Mac (currently here: https://code.visualstudio.com/download).
  2. Install the TFS extension for VS Code: Go to the Extensions tab in VS Code, Search for TFS and install.
  3. Install TEE-CLC. Follow this guide: https://www.youtube.com/watch?v=VPNaEIVZfr0&feature=youtu.be.

CREATE A LOCAL TFVC WORKSPACE IN YOUR MAC

Now you need to have a local TFVC Workspace on your machine. If you don't have one (as it was my case), you need to create it. The following steps are partially extracted from https://stackoverflow.com/a/21785438/2816119.

  1. Create a local folder where you are going to download and locally store the source code.
  2. Open a Terminal window.

  3. Create a local workspace from your terminal window with the following command:

  4. Map your repository folder to your local folder with the following command:

  5. If everything went well, you'll see a new sub-folder '.tf' in your local folder.

  6. Open your local folder with VS Code. If everything went well you'll se after a few seconds the TFVC icons in the bottom bar:

GET THE SOURCE CODE

To get the source code you'll need to go to the Source Control Tab ->Ellipsis (...) button ->Sync.

Once you press it you'll see a progress bar moving in the Source Control Tab and you'll see how the source code is downloaded to your local folder.

ENJOY

Now you can use your TFVC repository as described in their guides.If something is not clear or you have questions please let me know. I'll try to help you :-)

juangalfjuangalf

Get the software

  • tee-clc (can be installed with HomeBrew), which depends on
  • Java 6, 7, or 8 (see How to install Java 8 on Mac -- as of this writing, Java 9 will not work.)

Create a workspace using tee-clc ('tf')

Tell tee-clc to remember your credentials (in OSX's Keychain) by adding this line to your .bash_profile. Then close and reopen your terminal or just paste the same command.

Accept the EULA.

Create a workspace.

Map a path on the server to a local folder.

Get the code and store your password. Make sure you type your actual username; if you enter your_username here it may get stored in the OSX Keychain and tee-clc is really dumb about replacing it later.

If it works, it will download your code to that folder. You can also use the other commands.

Use the Azure Repos Extension on VS Code

Get the Azure Repos extension.

Add the following settings (CMD+,):

Type which tf in Terminal to find out what the value for location should be. I'm not sure if 'restrictWorkspace' is necessary. I got it from a comment on Github while I was troubleshooting.

Finally, open the folder containing your code. From the command palette (⌘+⇧+P) type Team: Signin. If that works, you can start using the other features in the plugin.

Patrick McElhaneyPatrick McElhaney
38.3k35 gold badges113 silver badges152 bronze badges

GIT

VS Code ships with a Git source control manager (SCM) extension. Most of the source control UI and work flows are common across SCM extensions.

More details please refer this tutorial:Using Version Control in VS Code

Note:VS Code will leverage your machine's Git installation, so you need to install Git first before you get these features. Make sure you install at least version 2.0.0.

TFVC

You can connect to TFVC using the Visual Studio Team Services extension since version 1.116.0 (2017/04/12).

Note:You need Team Foundation Server 2015 Update 2 or later.

PatrickLu-MSFTVisual Studio For Mac Github ExtensionPatrickLu-MSFT
32.2k4 gold badges13 silver badges40 bronze badges

Check the below link. It is working fine for me

Steps to be followed:

Step 1: Install Eclipse

Step 2: Download and install the TFS everywhere plugin

Step 3: Checkout your solution using the eclipse to a local folder

Step 4: Open the solution in Visual studio and make the code changes

Step 5: Open eclipse and commit your changes.

Shyju MadathilShyju Madathil
2,3781 gold badge17 silver badges27 bronze badges

Not the answer you're looking for? Browse other questions tagged macostfsvisual-studio-code or ask your own question.

I’m often asked how to best learn to build Visual Studio extensions, so here is what I wished someone told me before I got started.

Don’t skip the introduction

It’s easy to create a new extensibility project in Visual Studio, but unless you understand the basics of how the extensibility system works, then you are setting yourself up for failure.

The best introduction I know of is a session from //build 2016 and it is as relevant today as it was then.

Know the resources

Where do you get more information about the various aspects of the Visual Studio APIs you wish to use? Here are some very helpful websites that are good to study.

Know how to search for help

Writing extensions is a bit of a niche activity so searching for help online doesn’t always return relevant results. However, there are ways we can optimize our search terms to generate better results.

Setup
  • Use the precise interface and class names as part of the search term
  • Try adding the words VSIX, VSSDK or Visual Studio to the search terms
  • Search directly on GitHub instead of Google/Bing when possible
  • Ask questions to other extenders on the Gitter.im chatroom

Use open source as a learning tool

You probably have ideas about what you want your extension to do and how it should work. But what APIs should you use and how do you hook it all up correctly? These are difficult questions and a lot of people give up when these go unanswered.

The best way I know of is to find extensions on the Marketplace that does similar things or uses similar elements as to what you want to do. Then find the source code for that extension and look at what they did and what APIs they used and go from there.

Additional tools

There is an open source extension for Visual Studio that provides additional features for extension authors that I can highly recommend. Grab the Extensibility Essentials extension on the Marketplace.

Also, a NuGet package exist containing Roslyn Analyzers that will help you writing extensions. Add the Microsoft.VisualStudio.SDK.Analyzers package to your extension project.

Git Repository Visual Studio

I hope this will give you a better starting point for writing extensions. If I forgot to mention something, please let me know in the comments.