Visual Studio For Mac Git Setup
Last year at Build, we launched Visual Studio for Mac, our native macOS IDE for developers building cloud, web, and mobile applications using .NET. Updates have been rolling out at a steady pace ever since, and we’re excited to announce the release of Visual Studio for Mac version 7.5. We have also continued to bring more Visual Studio 2017 code to the Mac.
Our mission has always been to delight developers, and we have something for everyone in this release. You can get started by downloading the new release or updating your existing install to the latest build in the Stable channel.
Here are some of the features we’re most excited to share with you:
Reported by Luke Feb 22 at 12:14 AM visual studio for mac. I've set up my git to automatically sign my commits using GnuPG. Committing using either the command line or something like VSCode applies this automatic signing, but VS for Mac doesn't seem to.
- ASP.NET Core developers now have full Razor editor support. We’ve also introduced JavaScript and TypeScript support.
- For iOS developers, we added WiFi debugging support for iOS and tvOS applications. We also improved the iOS provisioning system.
- Android developers will enjoy the new Android SDK manager built right into the IDE, as well as a device manager to keep track of all your devices and emulators
- Xamarin.Forms developers will enjoy an improved XAML editing experience
- Cloud developers have support for Azure Functions development using .NET Core.
- We support .NET Core 2.1 RC and C# 7.2.
- Code-styling rules can be configured per-project using .editorconfig files.
- A preview of Team Foundation Version Control support for Team Foundation Server and Visual Studio Team Services is now available.
We’re also shipping improvements to performance and stability, accessibility, and multi-language support, along with fixes for a number of bugs reported by our vibrant developer community. You can find the full list of changes in our release notes.
ASP.NET Core development with Razor, JavaScript, and TypeScript Editor Support
We partnered with the Roslyn and Visual Studio JavaScript tooling teams to reuse Razor, JavaScript, and TypeScript editor source code, bringing the editing experiences you know and love from Visual Studio 2017 to the Mac.
Official Razor support includes IntelliSense and syntax highlighting in .cshtml files
Our JavaScript editor has been rewritten to provide the core editor experience you expect, including IntelliSense, enhanced colorization, and brace completion. We’ve also added TypeScript editing support, which shares the same IntelliSense and colorization as our JavaScript experience.

Use .editorconfig files to Set Code Style Rules in Projects
One of my favorite features is finally here: .editorconfig
Visual Studio for Mac will now format your code following the conventions specified in the .editorconfig file. This will allow you to set your coding style, preferences, and warnings for your project; making it simpler for code that you contribute to other projects to follow the practices of those projects.
Xamarin.Forms Development
We now ship Xamarin.Forms templates that take advantage of .NET Standard Libraries.
Working with XAML just got better, too, with IntelliSense improvements providing better support for self-closing elements and more completions.
Android Development with Xamarin
On the Android side of the house, we added an integrated Android Device Manager dialog, eliminating the need to rely upon 3rd-party tools for device and emulator management. You can find this under Tools > Device Manager.
iOS Development with Xamarin
iOS fans will enjoy a streamlined Entitlements editor experience, making it a breeze to add capabilities and services to your iOS apps.
Simply open the Entitlements.plist file and jump right in! Not only that, our new Automatic Signing experience makes deploying your application to devices very simple. In the Signing section of the Info.plist editor, you’ll find using Automatic Signing makes the burdens of manually tracking your entitlements and provisioning devices things of the past.
Building Serverless solutions with Azure Functions
Our new Azure Functions templates now support the Azure Functions .NET Core SDK, empowering you to build, debug, and test Azure Functions locally. In addition, item templates provide guidance for building functions using the most common triggers, enabling you to get up and running with new functions in minutes.
After creating a new Azure Functions project, right-click and select Add > Add Function, then choose your favorite function from the template dialog.Check out our documentation for a walkthrough to create your first Function in Azure.
.NET Core 2.1 RC and C# 7.2
Visual Studio for Mac version 7.5 now supports .NET Core 2.1 RC. Major improvements include faster build performance, better compatibility with .NET Framework, and closing gaps in both ASP.NET Core and EF Core. You can read more about the .NET Core 2.1 RC release in the announcement blog post. Support for the newest C# release, version 7.2, is also available today.
Visual Studio Git Integration
Working with your source with Team Foundation Version Control
One of our most popular feature requests has been to add support for Team Foundation Version Control (TFVC) to access source saved in Team Foundation Server or Visual Studio Team Services. We heard you loud and clear! Today, we’re previewing a new extension to do just that.
To install the extension, navigate to Visual Studio > Extensions… in the Visual Studio for Mac menu and search the gallery for “team foundation”. We support Get, Commit (with associated work items), version history, and more.
Feedback
We hope you’ll find Visual Studio for Mac version 7.5 as delightful as we do. Let us know what you think! Your feedback helps us improve our products and better understand your needs as a developer.
Please let us know about issues via Help > Report a Problem. You’ll be able to track your issues and receive updates in the Visual Studio Developer Community.
You can also provide product suggestions via the Help > Provide a Suggestion menu and vote on suggestions at the Visual Studio for Mac UserVoice site.
Miguel de Icaza
| Miguel de Icaza, Distinguished Engineer, Mobile Developer Tools @migueldeicaza Miguel is a Distinguished Engineer at Microsoft, focused on the mobile platform and creating delightful developer tools. With Nat Friedman, he co-founded both Xamarin in 2011 and Ximian in 1999. Before that, Miguel co-founded the GNOME project in 1997 and has directed the Mono project since its creation in 2001, including multiple Mono releases at Novell. Miguel has received the Free Software Foundation 1999 Free Software Award, the MIT Technology Review Innovator of the Year Award in 1999, and was named one of Time Magazine’s 100 innovators for the new century in September 2000. |
I am setting up Xamarin with Team Foundation Service + git to develop iOS apps. I have tried many different settings trying to set up my TFS + git integration on our MAC with no avail. I keep getting exceptions of either not authorized or failed to fetch.
Visual Studio For Mac
5 Answers
I am going to list all steps I took to be as complete as possible.
- First of all, I created a hosted TFS account and added a
New Team Project + Git - I then had to create alternative login credentials since you cannot have an
@symbol in your login info. To set up alternate creds in Visual Studio Team Services (VSTS), click on your name on the top right -> My Profile -> Credentials - After enabling the alternative credentials open Xamarin Studio. In my case I had a solution that I wanted to add so I had my solution file open as well.
- Under the
Version Controlmenu item selectPublish(Only available with solution file open) - Select the
Registered Repositioriestab and selectAdd - Enter an appropriate name. Select
httpsprotocol. - Enter your hosted TFS URL ie.
xxx.visualstudio.com. - For port, enter
443. - The path will be:
/DefaultCollection/_git/+ project name (exactly as you typed it including spaces) - User will be the alternative username you created in step 2. Click
OKon both open windows. - You will be prompted to confirm publishing. Select
OK. - You will then be prompted for your password. Enter you alternative password you created in step 2. If you accidentally enter the wrong password here, you must delete the entry from your key chain. Instructions can be found here
Your TFS + git integration with Xamarin Studio should be complete! If you have any other issues I will try my best to help with them.
Chris - Haddox TechnologiesVisual Studio Git Repository
Chris - Haddox TechnologiesMicrosoft Visual Studio For Mac
In step 12. on Windows 8 and you entered the wrong password you will have to fix it in Credential Manager.
In windows 8
In Control Panel,Open Credential Manager,On the top of the page you have two options, select 'Windows Credentials'.Under 'Generic Credentials' look for a record for 'your.visualstudio.com' click to expand and select remove.Now if you publish from Xamarin Studio you will be prompted for your password again.
I had problems connecting to my visualstudio.com repository even when following these instructions. What I did was to use XCode to checkout (or clone) the repository. I then opened my solution in Xamarin and it picked up the repository info just fine.
I use git-tf, which is a command line tool. But once you clone the repository you are able to use all the functionality like blame, revert, commit. It works with the new OSX version of Visual Studio as well.
Antarr ByrdAntarr ByrdVisual Studio For Mac Git Setup
This is the best solution I found to connect Xamarin/Visual Studio Mac to TFS: