Return to site

Microsoft Visual Studio C For Mac

broken image


What types of applications can I develop with Visual Studio for Mac? How do I open multiple solutions or instances of Visual Studio for Mac? Download and Installation (See all 6) How can I uninstall Visual Studio for Mac? How can I get the Visual Studio for Mac installation logs? What do I need to do before installing Visual Studio for Mac? Download Visual Studio Community, Professional, and Enterprise. Try Visual Studio IDE, Code or Mac for free today. C/C for Visual Studio Code. C/C support for Visual Studio Code is provided by a Microsoft C/C extension to enable cross-platform C and C development on Windows, Linux, and macOS. Getting started C/C compiler and debugger. The C/C extension does not include a C compiler or debugger. Download Visual Studio Community, Professional, and Enterprise. Try Visual Studio IDE, Code or Mac for free today.

  1. Microsoft Visual Studio For Mac
  2. Download Visual Studio For Mac

Microsoft today announced that Visual Studio 2019 for Windows and Mac has hit general availability — you can download it now from visualstudio.microsoft.com/downloads. Visual Studio 2019 includes AI-assisted code completion with Visual Studio IntelliCode. Separately, real-time collaboration tool Visual Studio Live Share has also hit general availability, and is now included with Visual Studio 2019.

Microsoft launched Visual Studio 2017 in March 2017 and Visual Studio 2017 for Mac in May 2017, which turned out to be the 'most popular Visual Studio release ever.' The company announced Visual Studio 2019 for Windows and Mac in June, and started releasing Visual Studio 2019 previews in December.

Visual Studio 2019 improves on Visual Studio 2017 across the board. It includes a new start window experience to get developers into their code faster (making it simpler to clone a Git repo or to open an existing project or folder), improved template selection screen, increased coding space, a new search experience, more refactoring capabilities, a document health indicator, and smarter debugging. Plus, all of the above works with both your existing project and new projects — from cross-platform C++ applications, to .NET mobile apps for Android and iOS written using Xamarin, to cloud-native applications using Azure services.

New features

The new start window on launch is designed to work better with today's Git repositories, including local repos, Git repos on GitHub, and Azure Repos. Git aside, you can still open a project or a solution or create a new one of either.

Visual Studio's UI and UX have also received subtle changes, such as a new product icon, a cleaner blue theme, and a more compact title and menu bar. There's also a new search experience that replaces the Quick Launch box. It lets you find settings and commands and install options, and it even supports fuzzy string searching.

Visual Studio 2019 improves the code maintainability and consistency experiences with new refactoring capabilities — such as changing for-loops to LINQ queries and converting tuples to named-structs. There's also a new document health indicator and code clean-up functionality.

As for debugging, stepping performance is improved and search capabilities have been added to the Autos, Locals, and Watch windows. You can also expect improvements to the Snapshot Debugger to target Azure Kubernetes Service (AKS) and Virtual Machine Scale Sets (VMSS), and better performance when debugging large C++ projects, thanks to an out-of-process 64-bit debugger.

IntelliCode and Live Share

At its Build 2018 developers conference in May, Microsoft previewed IntelliCode and Live Share. The former uses AI to offer intelligent suggestions that improve code quality and productivity, and the latter lets developers collaborate in real time with team members who can edit and debug directly from Visual Studio and Visual Studio Code.

Visual Studio IntelliCode now has custom models and expanded language support. Custom models further improve the AI-enhanced IntelliSense, giving developers personalized recommendations based on the patterns and libraries used in their code, on top of the analysis made on thousands of open source repos. Visual Studio developers now get IntelliCode for XAML and C++ code, in addition to C#. Visual Studio Code developers can use IntelliCode when developing JavaScript, TypeScript, Python, and Java.

Visual Studio Live Share, which is now installed by default in Visual Studio 2019, helps developers collaborate in real time, including desktop app sharing, source control diffs, and code commenting. Being able to share, edit, and debug code is great, but being able to do so without needing to clone repos or set up environments is even better. Based on feedback, Microsoft also added features like read-only mode, support for additional languages like C++ and Python, and enabled guests to start debugging sessions. Live Share can be used in a variety of use cases, including pair programming, code reviews, giving lectures, presenting to students and colleagues, or even mob programming during hackathons.

Learning Visual Studio 2019

For a full run-down of all the additions and improvements, check out what's new, the docs, and release notes (Windows, Mac). Furthermore, Pluralsight has a free Visual Studio 2019 course available until April 22, while LinkedIn Learning has a free course available until May 2.

Microsoft is also hosting a virtual Visual Studio 2019 Launch Event and over 70 local launch events around the world today where it will demo the new version and detail its features. The company has also planned over 200 more events between now and the end of June. If all else fails, there's always the Visual Studio Developer Community.

How startups are scaling communication: The pandemic is making startups take a close look at ramping up their communication solutions. Learn how

Hands On Microsoft this week opened the gates on Visual Studio for Mac 2019 8.3, a flexible development environment for .NET, and The Reg can give you the lowdown on some of the new features.

Visual

But first, let's see how the Microsofties got here. Redmond has three coding tools under the Visual Studio brand, all of which have different ancestries.

Visual Studio on Windows supports development not only in .NET languages but also C++, Python, JavaScript and Node.js, and cross-platform mobile development using Xamarin, Apache Cordova or C++. Depending on which edition you have, you also get SQL Server database tools, test and coverage frameworks, Microsoft Office and SharePoint development, R for data science work, built-in Docker tools and more.

Xamarin is a cross-platform .NET framework designed mainly for iOS and Android, but also with support for macOS applications. A confusing thing is that Xamarin does not use .NET Core, though it does support the .NET Standard 2.1 specification in its latest version. See here for guidance.

Xamarin evolved from the open-source Mono framework, an implementation of .NET for Windows and Linux. Mono had its own IDE, called MonoDevelop, which unlike Visual Studio was originally written entirely in C#. Xamarin adapted MonoDevelop to become Xamarin Studio. When Microsoft acquired Xamarin in 2016, Xamarin Studio became a Mac-only IDE and was renamed Visual Studio for Mac. You can still get MonoDevelop for Mac, Windows and Linux, though the Mac download is now Visual Studio for Mac, and on Windows you have to build it from source.

Visual Studio Code (VS Code) is a cross-platform editor built with the Electron framework, using Node.js and the Chromium browser engine Blink. VS Code was first previewed in 2015 and has been a remarkable success, now ranking as the top development environment on the popular coding Q&A site StackOverflow by a huge margin. Although lightweight in comparison to Visual Studio, VS Code straddles the boundary between an editor and an IDE, with debugging support and a rich range of extensions.

Following the acquisition, Microsoft has been working on sharing some of its Visual Studio for Windows technology with the Mac version. This goes alongside the development of the cross-platform .NET Core, which has allowed code sharing between Mono and .NET Core, though Mono has not been completely replaced. It is still the case that Visual Studio for the Mac is a very different thing from Visual Studio for Windows.

What can Visual Studio for Mac do?

VS Mac is primarily for Xamarin development. The majority of Xamarin developers code applications for iOS and Android, and there are two different approaches to this.

Xamarin.iOS and Xamarin.Android let you write non-visual code in C# while using native tools to build the UI, Xcode for iOS or a built-in Android designer for Android.

Xamarin Forms is a cross-platform GUI framework. You design the user interface with XAML and build for your chosen target platforms.

Mac

But first, let's see how the Microsofties got here. Redmond has three coding tools under the Visual Studio brand, all of which have different ancestries.

Visual Studio on Windows supports development not only in .NET languages but also C++, Python, JavaScript and Node.js, and cross-platform mobile development using Xamarin, Apache Cordova or C++. Depending on which edition you have, you also get SQL Server database tools, test and coverage frameworks, Microsoft Office and SharePoint development, R for data science work, built-in Docker tools and more.

Xamarin is a cross-platform .NET framework designed mainly for iOS and Android, but also with support for macOS applications. A confusing thing is that Xamarin does not use .NET Core, though it does support the .NET Standard 2.1 specification in its latest version. See here for guidance.

Xamarin evolved from the open-source Mono framework, an implementation of .NET for Windows and Linux. Mono had its own IDE, called MonoDevelop, which unlike Visual Studio was originally written entirely in C#. Xamarin adapted MonoDevelop to become Xamarin Studio. When Microsoft acquired Xamarin in 2016, Xamarin Studio became a Mac-only IDE and was renamed Visual Studio for Mac. You can still get MonoDevelop for Mac, Windows and Linux, though the Mac download is now Visual Studio for Mac, and on Windows you have to build it from source.

Visual Studio Code (VS Code) is a cross-platform editor built with the Electron framework, using Node.js and the Chromium browser engine Blink. VS Code was first previewed in 2015 and has been a remarkable success, now ranking as the top development environment on the popular coding Q&A site StackOverflow by a huge margin. Although lightweight in comparison to Visual Studio, VS Code straddles the boundary between an editor and an IDE, with debugging support and a rich range of extensions.

Following the acquisition, Microsoft has been working on sharing some of its Visual Studio for Windows technology with the Mac version. This goes alongside the development of the cross-platform .NET Core, which has allowed code sharing between Mono and .NET Core, though Mono has not been completely replaced. It is still the case that Visual Studio for the Mac is a very different thing from Visual Studio for Windows.

What can Visual Studio for Mac do?

VS Mac is primarily for Xamarin development. The majority of Xamarin developers code applications for iOS and Android, and there are two different approaches to this.

Xamarin.iOS and Xamarin.Android let you write non-visual code in C# while using native tools to build the UI, Xcode for iOS or a built-in Android designer for Android.

Xamarin Forms is a cross-platform GUI framework. You design the user interface with XAML and build for your chosen target platforms.

You can also go beyond iOS and Android. Xamarin.Mac is for Cocoa applications and uses a similar model to Xamarin.iOS. Xamarin Forms can also target Windows UWP (Universal Windows Platform) and, in preview, macOS.

There is also steadily improving support for games development with Unity.

A glance at the Xamarin forums gives a crude guide to usage. Xamarin Forms has more than double the activity of any other section (over 51,000 threads). Xamarin.Android 34,000, Xamarin.iOS 21,000, and relatively low activity elsewhere – 343 threads for Xamarin.Mac, for example.

Xamarin Forms Mac support seems to be moribund; it was announced in 2017 but the platform status here was last updated in May 2018 and remains incomplete.

Visual Studio for the Mac also supports ASP.NET Core development using Razor, Angular or React.js, and serverless with Azure Functions.

Under the Vulture's Claw

A cross-platform Xamarin Forms app running on iOS and Android

We installed VS Mac on a 2018 Mac Mini. The installer pulls down the Android SDK for you, but you have to install Xcode separately. All straightforward, but there is a puzzle about .NET Core. Version 3.0 is installed automatically, and you can create ASP.NET Core apps, but when you go to create a mobile app, the option to create an ASP.NET Core API back end is disabled because it 'requires an ASP.NET Core installation'.

The look and feel of the IDE is different from Visual Studio on Windows, as you would expect from the product history. It feels more basic and less refined, and has only a fraction of the features of its similarly named cousin.

There is no visual designer for Xamarin Forms, but there is a visual preview. Unfortunately, this did not work for iOS on our very simple demo app, showing instead a MonoTouch exception message. But the app itself worked fine on both Android and iOS. The IDE did crash once or twice but with no loss of work.

Another experiment was to create a Xamarin.Mac application and edit the generated storyboard, which defines the user interface using Xcode. This worked perfectly.

What's new?

VS Mac 8.3 supports .NET Core 3 and C# 8.0, and Xamarin now supports Android 10, Xcode 11 and iOS 13.

One of the big new features, though in preview, is XAML hot reload in Xamarin Forms. This lets you amend the XAML file defining your UI, save it, and see the changes instantly in the app running on an emulator or device.

The Visual Studio Mac native editor shares code with Visual Studio on Windows

The C# editor in VS Mac was rewritten by the Visual Studio team after the Microsoft acquisition. It now has what Microsoft calls a 'fully native UI', raising the interesting question of how much of the old MonoDevelop code, which used cross-platform Gtk#, remains in VS Mac. The new native editor was fully released in July, but VS Mac 8.3 now supports web editing (JavaScript, TypeScript, HTML, CSS and more). This lets Microsoft share more features between Visual Studio on Windows and VS Mac, including improved IntelliSense. You also get proper bidirectional text support and a natty feature called multi-caret editing that lets you overtype multiple regions of selected text simultaneously.

There is a new dialog for the NuGet package manager, but care is needed because not all NuGet packages will work on the Mac.

These are highlights; the full list of what's new is here.

Observations

Microsoft Visual Studio For Mac

Microsoft has two successful Visual Studio development tools, and then there is VS Mac, which is important only for Mac-based Xamarin developers. Xamarin.Mac and Xamarin Forms targeting macOS are both interesting for .NET developers wondering how to get their Windows apps onto a Mac, but both are neglected relative to iOS and Android. If you want to develop for ASP.NET Core you would be better off with Visual Studio on Windows, and probably better off with VS Code with its much larger community and rich extension support. Strategically, it might make sense for Microsoft to invest in making VS Code more useful for Xamarin developers. All that said, VS Mac is substantially improved and the price is right: even the free Community edition is a capable tool. ®

Download Visual Studio For Mac

Get ourTech Resources




broken image