Those of you that are following my on Twitter will know that I’ve attended the Microsoft Build conference in Seattle last week. This week, we’ll cover some Xamarin topics that were shared during the biggest developer conference from Microsoft. In this article, we’ll dive into the functionality of Xamarin Studio for Mac, that went Generally Available during the event.
VS for Mac Product Manager Rajen Kishna replied: 'Our goal with Visual Studio for Mac is to create a native IDE for Mac users with workloads that make sense on macOS. That means 'desktop app' development will target macOS and Visual Studio (on Windows) can be used to target Windows. Visual Studio on a Mac: The Best of Both Worlds With these tweaks, I’ve come to love using Visual Studio on a Mac. The performance is good, and by running Windows in a virtual machine, I get the best of both OS worlds. 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.
About this article:
This article has been co-written with colleague Bas. You can find a copy of this article on his blog as well.
Last november, Microsoft held it’s Connect();-event and made some great announcements. One of those, was the availability of Visual Studio for Mac (VS4Mac). In the beginning, MonoDevelop was the IDE to develop C# on a Mac, which later converted to Xamarin Studio (XS). But since the Build-conference this week, VS4Mac has gone GA which made it the prime IDE for C# developers on MacOS. Because of this, XS is discontinued and VS4Mac is the way to go. Awesome!
VS4Mac isn’t just a rebrand of XS, is has tons of new features added. When it was Xamarin Studio, you would be able to build apps, games & services for mobile using the technology from Xamarin. Now that it has turned into Visual Studio, you can even make Web and Cloud applications that you can deploy on Microsoft Azure. But that’s not all: VS4Mac also has C# 7.0 support! You’ll now be able to create stuff like Local functions and more of the great stuff C# 7.0 brings us (all running on Mono 5.0).
Visual Studio For Mac Os
Visual Studio For Mac Os X Download
When creating a Native Mobile App in VS4Mac, you’ll now have the option to add a Mobile Backend, which adds a ASP.NET Core Web API project to the solution as well. You’ll get three different heads in the solution: The .Droid
and .iOS
projects (for Android and iOS respectively) and a new, .MobileAppService backend.
The project template already comes with a small example to show you on how the projects work together. When running the .MobileAppService
project, a web server will start on a certain port (in my example: 52599
) which will cause Swagger UI to start up. And now the awesome part: VS4Mac supports Multi-process debugging as well! This means that you can debug the .iOS
(or .Droid
.) project and .MobileAppService
project at the same time, jumping back and forth from front-end to back-end code.
By default, the Mobile projects use a MockDataStore
that doesn’t make a connection to the .MobileAppService
project. Luckily, it’s pretty simple to connect them to eachother and see the multi-process debugging in action. Take the following steps:
- Open up the
App.cs
file in the Shared project - Set the
UseMockDataStore
boolean tofalse
- Make sure the
BackendUrl
has the correct port number
Now both the front- & back-end solutions are communicating with eachother, which you can simply prove by setting breakpoints in both solutions and checking the data. Now you’ll be able to create a full solution with a front- and back-end in the same IDE!
In the example above you’ll see the ItemsViewModel
, a class within the .iOS
solution trying to retrieve the data. It jumps to the ItemController
, a class within the .MobileAppService
project to provide that data back to iOS. Being able to debug across these different threads allows developers to debug solutions quickly.
Other than an ASP.NET Web API, we’re also able to create a website with ASP.NET MVC or Web Forms. Since VS4Mac is running on Roslyn, syntax highlights for HTML and CSS is available. Even the Razor Syntax is supported, making VS4Mac your one-stop shop for Mobile and Web development as well!
But it doesn’t stop there – there’s even support for Docker (in Preview) for those that like to play around with Containers. If you’re using Azure Functions to create a Serverless Architecture, you’re covered. If you’re a user of Unity, selecting a *.cs
file now automatically opens up VS4Mac as well. With all this functionality already in VS4Mac, it doesn’t matter if you’re using Windows or MacOS!
As far as we know now, it won’t have an exact feature parity with Visual Studio on Windows. Developing UWP on MacOS wouldn’t make much sense as well as developing MacOS apps on Windows doesn’t make sense. But more and more functionality (especially Azure support) will be ported to VS4Mac soon, making it possible to have all the functionality you need to develop C# on MacOS. Go ahead and try it out yourself!
For more info about VS4Mac, check out:
Thanks to integration with Xamarin, a cross-platform software development company that Microsoft acquired last year, Visual Studio encourages macOS and iOS developers 'to use Microsoft’s development tools, since they will no longer need a Windows computer or virtual machine to do so.' Xamarin Studio is expected to eventually close for good following a full integration into Microsoft.
“Developers get a great IDE and a single environment to not only work on end-to-end solutions — from mobile and web apps to games — but also to integrate with and deploy to Azure,” Scott Guthrie, executive vice president of the Microsoft Cloud and Enterprise group, said in a statement. “Whether you use C#, F#, .NET Core, ASP.NET Core, Xamarin or Unity, you’ll get a best-in-class development environment, natively designed for the Mac.”Visual Studio has been designed natively for macOS, according to Microsoft, letting developers manage their code hosted by any provider, including GitHub and Visual Studio Team Services. Developers can build, connect, and tune native mobile apps for iOS, macOS, and Android while also having the ability to create web applications thanks to support for ASP.NET Core. In terms of programming languages, the C# and F# languages are supported.
There are three different versions of Visual Studio for Mac that users can download, including Visual Studio Community, Visual Studio Professional, and Visual Studio Enterprise. Microsoft markets Community as its free, but 'fully-featured,' IDE for students and individual developers. Professional targets small teams with subscription benefits, while more 'demanding' users and projects with larger scale are suggested to look into Enterprise.
For its cloud subscriptions, there are yearly and monthly options available to users interested in the higher-tier Visual Studio plans. An annual subscription to Visual Studio Professional costs $539/year while a monthly subscription costs $45/month. For Visual Studio Enterprise, users will pay $2,999/year or $250/month. Subscribers will be able to earn small credits back each month for the yearly tiers, contingent on their use of different Azure services.
For a detailed breakdown of the differences between each Visual Studio subscription, including individual licenses, check out the app's new website.
Guides
Upcoming
Front Page Stories
Visual Studio For Mac Usenet
Bloomberg: 2019 iPhones Will Have Centered Apple Logo on Back
What to Expect at Apple's September 2019 Event: New iPhones, Apple Watch Models, Services Updates and More
1 day ago on Front PageApple to Live Stream September 10 Event on YouTube
1 day ago on Front PageU.S. Government Orders Apple and Google to Identify Users of a Gun Scope App
1 day ago on Front PageFifth Avenue Glass Cube Gets Temporary Rainbow Look to Celebrate Reopening
1 day ago on Front PageApple Disputes Some Details of Google's Project Zero Report on iOS Security Vulnerabilities [Updated]
1 day ago on Front PageKuo: 'Apple Tags' to Feature Ultra-Wideband Technology, Likely Far More Precise Than Tile's Trackers
1 day ago on Front PageApple Working on Siri Feature Allowing Back-and-Forth Conversations About Health Problems
1 day ago on Front Page