How To Start A New C++ Project In Visual Studio For Mac



Visual Studio for Mac was released just under two months ago at Build 2017, and already we’ve seen tremendous growth in .NET developers working on the Mac. Visual Studio for Mac enables you to build native apps for macOS, native mobile apps for iOS, tvOS, watchOS, and Android, using Xamarin and Xamarin.Forms; and web sites and services using ASP.NET Core. You can also use Unity to build cross-platform 3D games.

To help new Visual Studio for Mac developers get started, we’ve created some hands-on labs to walk through some of its exciting new features. The first two labs are available today, for Unity game development and connecting to Internet of Things (IoT) devices, and we’re planning to release 4 more in the coming weeks.

Visual Studio Community supports Visual Basic, C#, and C++. This makes it suitable for a beginner as the software is free to download and install. Follow these simple steps below to install and setup Visual Studio Community. How to run Visual Studio Code from Terminal on Mac OSX Edit: You can just do this from Visual Studio Code now. Edit: Thanks for commenter on letting know that latest release of Code broke original post.

Lab 1: Building Games with Unity in Visual Studio for Mac

The first hands-on lab demonstrates how to build and debug Unity game projects. It guides you through 4 tasks:

  1. Setting up a basic Unity project
  2. Working with a 3D game scene
  3. Debugging the game script
  4. Exploring additional features that support game development.

Follow these instructions to download and install Unity, then use it with Visual Studio for Mac to script and debug a 3D game scene.

Lab 2: Targeting IoT Devices in Visual Studio for Mac

Our second lab shows you how to create apps that run on an IoT device – such as the popular Raspberry Pi – from Visual Studio for Mac. It guides you through 3 tasks:

  1. Setting up your Raspberry Pi
  2. Creating the IoT project
  3. Extending your IoT app with Xamarin components to add additional features.

C++ Project Ideas

This functionality is currently in preview, but we’ll make sure to update the lab if any changes will be necessary when we ship it in a stable release.

Follow these instructions to write your first IoT code, then visit our IoT samples for more ideas.

Get Started

Create A New C++ Project In Visual Studio 2017

Create new c++ project visual studio

Download Visual Studio for Mac today, and visit our labs repo on GitHub to give game development a try or connect to an IoT device. With the Community Edition it is easy and free to get started. Keep an eye on this blog for more labs that demonstrate all the other great features of Visual Studio for Mac.

Visual C++ Project Ideas

Craig Dunn, Principal Program Manager
@conceptdevCraig works on the Mobile Developer Tools documentation team, where he enjoys writing cross-platform code for iOS, Android, Mac, and Windows platforms with Visual Studio and Xamarin.