Visual Studio For Mac 2017

Description

Visual Studio for Mac has just been released! Come join us for a tour of this fully-featured IDE that will help every Mac developer create mobile and cloud applications. We started with a solid foundation for mobile development using Xamarin, and cloud development using .NET Core and recently added ASP.NET Core support. We’ve just announced support for game development with Unity, and new preview features for Azure developers using Docker or Azure Functions. In this hour and a half, learn about the basics of the IDE such as navigation, debugging, code editing, and refactoring tools to ease your C# and F# development. We also take a whirlwind tour through the mobile and cloud features included in the IDE. Finally, we look at what’s coming up next.

Day:

1

We’re excited to start the new year off with great updates to the Visual Studio 2017 15.6 Preview for both Windows and Mac, and we hope that you will install and use it, and then tell us what you think. Learn how to turn a Mac into the ultimate Visual Studio development machine for NET developers. Toggle navigation. Blog; The Stormpath API shut down on August 17, 2017. Thank you to all the developers who have used Stormpath. The Ultimate Guide to Using Visual Studio on a Mac. VS for Mac looks a little like a combination between Visual Studio 2017, xcode and Android Studio Along with design elements of Xamarin Studio VS for Mac has syntax highlighting for C#, F#, HTML, Razor, JS and CSS.

Mac

Session Type:

Breakout

Room:

WSCC Hall 6E (1215)

Embed

Visual Studio For Mac 2017 With Touchbar

Download

Download this episode

  • MP3 (55.4 MB)
  • Low Quality MP4 (74.3 MB)
  • High Quality MP4 (781.6 MB)
  • Mid Quality MP4 (193.8 MB)
For

Download captions

A preview version of Microsoft's Visual Studio 2017 got released for the OSX platform last March 15, 2017. Since that time, I've been using it to develop cross platform applications. Like many, I did not have the time to study Objective-C or Swift. Instead, I had to quickly learn C# on the job.
I consider C# to be an interesting choice for three reasons
  • It is supported on Mac and Linux platforms via the Mono framework
  • In theory, source code with little or no modification can be cross compiled on other platforms
  • Gtk is available on Windows/Linux/OSX
The last part clinched the decision the for me: creating user interfaces for the Mac via Xcode is too complex to tackle now. See: https://developer.xamarin.com/guides/mac/user-interface/working-with-windows/
User interfaces with Gtk, on the other hand, is quite straightforward. It behaves very much like Visual Basic; dragging and dropping widgets and attaching events (signals in Gtk parlance) for button clicks, mouse movement, etc. This does not make for an elegant way of programming. It encourages jumping right into code: Hack several pieces of it and hope the finished product is useful. And, if you're lucky, you get to refactor it and generally make it cleaner and more beautiful.
Shown below is the welcome screen of Visual Studio for Mac 2017 preview version.
... which should look familiar to anyone making his bread and butter on Visual Studio.
Inside, on the user interface designer, we have Gtk's assortment of widgets that can be dragged onto the empty canvas (MainWindow):
Then of course, the source code editor. Nothing surprising here.
One of the first issues I had to tackle was working with both Bitmap and Pixbuf formats. Graphics manipulation on the Windows platform almost always involves the former. The latter is used extensively in Gtk's framework.
How to convert to/from both formats? After testing several diverse, elegant, and weird answers on stackoverflow.com and google.com, I've settled on the following:
publicBitmap ToBitmap(Pixbuf src)

var stream = newMemoryStream(src.SaveToBuffer('bmp'))
{
Position = 0
returnnewBitmap(stream);
}
publicPixbuf ToPixbuf(Bitmap src)
{
if (src null) returnnull;
using (MemoryStream stream = newMemoryStream())
{
src.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp)
returnnewPixbuf(stream);
}
}
These two pieces of code solved a lot of issues especially when I began experimenting with different image processing libraries. Eventually, I'll be building a library for similar snippets of useful code and make it available on GitHub.
Here's a sample from my experiments with OpenCV (Open source Computer Vision library)
blob counting using OpenCV

Visual Studio For Mac Tutorial

Resources