1 00:00:00,250 --> 00:00:02,410 Before we can talk about the Visual Studio for 2 00:00:02,410 --> 00:00:06,690 Mac, we need to make sure all the required software is installed. 3 00:00:06,690 --> 00:00:12,030 You'll need an Apple ID to develop iOS apps if you don't already have one. 4 00:00:12,030 --> 00:00:15,895 Enroll in the Apple development program so you can eventually distribute your app. 5 00:00:17,665 --> 00:00:22,355 You also need to install the latest Xcode and the latest iOS SDK, 6 00:00:22,355 --> 00:00:26,885 because it has the required tools to compile our iOS projects. 7 00:00:26,885 --> 00:00:29,345 The iOS SDK is installed with Xcode, and 8 00:00:29,345 --> 00:00:33,175 additional versions can be added in the component preferences. 9 00:00:34,370 --> 00:00:36,010 Next, install Visual Studio for 10 00:00:36,010 --> 00:00:41,180 Mac, which will install the Mac agent software as well as the IDE. 11 00:00:41,180 --> 00:00:45,000 The instructions for installing are well documented on the Xamarin site, and 12 00:00:45,000 --> 00:00:47,290 a link is in the teacher's notes. 13 00:00:47,290 --> 00:00:49,010 These installs will take quite a while. 14 00:00:50,080 --> 00:00:52,620 When they are done, launch Visual Studio for Mac and 15 00:00:52,620 --> 00:00:55,470 sign in with your Microsoft account to activate your license. 16 00:00:56,520 --> 00:00:58,970 Remember you can use the community edition, which is free. 17 00:01:00,090 --> 00:01:04,950 Visual Studio for Mac has a number of improvements over its predecessors. 18 00:01:04,950 --> 00:01:10,180 Most notably is support for ASP.NET core projects. 19 00:01:10,180 --> 00:01:13,800 Supporting web projects allows a developer to work on the back end 20 00:01:13,800 --> 00:01:16,310 as well as the mobile app in the same IDE. 21 00:01:17,700 --> 00:01:19,650 One of the downsides of Visual Studio for 22 00:01:19,650 --> 00:01:24,110 Mac is it does not support as many project types as Visual Studio for Windows. 23 00:01:25,370 --> 00:01:29,901 There are also no MSTest projects in Visual Studio for Mac, 24 00:01:29,901 --> 00:01:33,263 but you can use NUnit or unit test projects. 25 00:01:33,263 --> 00:01:37,755 NUnit is also the unit test framework used by Xamarin Test Cloud, 26 00:01:37,755 --> 00:01:40,130 which is a cloud testing service. 27 00:01:42,140 --> 00:01:45,820 Many of the same features for Xamarin development are found in Visual Studio for 28 00:01:45,820 --> 00:01:49,210 Mac, but they are laid out in a Mac friendly way. 29 00:01:49,210 --> 00:01:52,969 The project templates in Visual Studio for Mac are basically the same, 30 00:01:52,969 --> 00:01:57,020 with different dialogs that don't include Windows apps. 31 00:01:57,020 --> 00:02:00,410 The iOS and Android tools are directly under the Tools menu, and 32 00:02:00,410 --> 00:02:03,380 don't indicate which platforms they apply to. 33 00:02:03,380 --> 00:02:08,026 The platform configuration is under the Preferences in the project SDK location 34 00:02:08,026 --> 00:02:08,646 section. 35 00:02:12,098 --> 00:02:15,373 Visual Studio for Mac also has support for NuGet packages, 36 00:02:15,373 --> 00:02:18,650 which are a great way to include libraries. 37 00:02:18,650 --> 00:02:22,370 The interface is nothing like the Windows versions, but packages can be added, 38 00:02:22,370 --> 00:02:24,120 restored, and updated as needed. 39 00:02:25,670 --> 00:02:29,490 Next, we'll discuss how to share code between platforms, 40 00:02:29,490 --> 00:02:32,920 which is one of the most powerful features of Xamarin developement.