CrossOver can get your Windows productivity applications and PC games up and running on your Mac quickly and easily. CrossOver runs the Windows software that you need on Mac at home, in the office, or at school without purchasing a Windows license, without rebooting your computer, and without having to use a virtual machine. Visual Studio subscriptions come with different set of benefits depending on the subscription type and level. You have the option to buy just the Visual Studio IDE or to also get a comprehensive set of subscriber benefits that include cloud services, software for.
While it is easier to create apps using Uno Platform on Windows, you can also create all but UWP/WinUI apps on your Mac.
Prerequisites
- Xcode 10.0 or higher
- An Apple ID
- .NET Core SDK
- .NET Core 3.1 SDK (version 3.1.8 (SDK 3.1.402) or later)
- .NET Core 5.0 SDK (version 5.0 (SDK 5.0.100) or later)
- GTK+3 for running the Skia/GTK projects
Installing the dotnet new templates
- In order to create a new Uno Project, you'll need to install the
dotnet new
Uno Platform templates. - Once done, in Visual Studio for Mac, open the preference menu:
- On left side, open the Other then Preview Features menu
- Check the Show all .NET Core templates in the New Project dialog
Create a new project using the IDE
To create a new project:
- Click the New button on the welcome screen
- Select Cross Platform App (Uno Platform)
- If presented with a list of options, uncheck Skia/WPF
- Choose a name then click create
Once created, you should see your folder structure set up like this:
- If you have a warning symbol on your iOS project, make sure you have the minimum version of Xcode installed.
To update, go toVisual Studio > Preferences > Projects > SDK Locations > Apple
and select Xcode 12 or higher.Restart Visual Studio.
- If you have a warning symbol on your iOS project, make sure you have the minimum version of Xcode installed.
If you did not get presented a list of options to create the project, as of Visual Studio for Mac 8.8, the Uno Platform template contains WPF projects that prevent NuGet restore to work properly. To fix this:
- Select the
MyProject.Skia.Wpf
andMyProject.Skia.Wpf.Host
- Right click to remove them from the solution.
- At the top of the tree, on the solution node, right click and select Restore Nuget Packages
- Select the
You can now run on iOS, Android, and macOS by setting your startup project and running.
Note: You will not be able to build the UWP and WPF projects on a Mac. All changes to this project must be made on Windows.
Create a new project using the command line
You can create a new Uno Platfom solution with the following terminal command:bash dotnet new unoapp -o MyProject --skia-wpf=false
Once created, you can open it using the Visual Studio IDE.
Build and Run for WebAssembly
Building for WebAssembly takes a few more steps:
- Set
MyProject.Wasm
to startup project - Build the project
- In the terminal, navigate to your build output. This will typically be:
MyProject.Wasm > bin > Debug > netstandard2.0 > dist > server.py
Run theserver.py
program. - In your browser, open localhost:8000.
Video Tutorial
Getting Help
If you have issues with Visual Studio and Uno Platform, please visit our Discord - #uno-platform channel or StackOverflow where our engineering team and community will be able to help you.
-->To start developing native, cross-platform .NET apps on macOS, install Visual Studio 2019 for Mac following the steps below.
Requirements
- A Mac with macOS High Sierra 10.13 or above.
To build Xamarin apps for iOS or macOS, you'll also need:
- A Mac that is compatible with the latest version of Xcode. See Apple's minimum requirements documentation
- The latest version of Xcode. It may be possible to use an older version of Xcode if your Mac is not compatible with the latest version.
- An Apple ID. If you don't have an Apple ID already you can create a new one at https://appleid.apple.com. It's necessary to have an Apple ID for installing and signing into Xcode.
Crossover Mac Visual Studio 2017
Installation instructions
Download the installer from the Visual Studio for Mac download page.
Once the download is complete, click the VisualStudioforMacInstaller.dmg to mount the installer, then run it by double-clicking the arrow logo:
You may be presented with a warning about the application being downloaded from the Internet. Click Open.
Wait while the installer checks your system:
An alert will appear asking you to acknowledge the privacy and license terms. Follow the links to read them, then press Continue if you agree:
The list of available workloads is displayed. Select the components you wish to use:
If you do not wish to install all platforms, use the guide below to help you decide which platforms to install:
Type of App Target Selection Notes Apps Using Xamarin Xamarin.Forms Select Android and iOS platforms You will need to install Xcode iOS only Select iOS platform You will need to install Xcode Android only Select Android platform Note that you should also select the relevant dependencies Mac only Select macOS (Cocoa) platform You will need to install Xcode .NET Core applications Select .NET Core platform. ASP.NET Core Web Applications Select .NET Core platform. Azure Functions Select .NET Core platform. Cross-platform Unity Game Development No additional platforms need to be installed beyond Visual Studio for Mac. Refer to the Unity setup guide for more information on installing the Unity extension. After you have made your selections, press the Install button.
The installer will display progress as it downloads and installs Visual Studio for Mac and the selected workloads. You will be prompted to enter your password to grant the privileges necessary for installation.:
Once installed, Visual Studio for Mac will prompt you to personalize your installation by signing in and selecting the key bindings that you'd like to use:
If you have network trouble while installing in a corporate environment, review the installing behind a firewall or proxy instructions.
Learn more about the changes in the release notes.
Note
If you chose not to install a platform or tool during the original installation (by unselecting it in step #6), you must run the installer again if you wish to add the components later.
Install Visual Studio for Mac behind a firewall or proxy server
To install Visual Studio for Mac behind a firewall, certain endpoints must be made accessible in order to allow downloads of the required tools and updates for your software.
Configure your network to allow access to the following locations:
Next steps
Visual Studio Community Mac
Installing Visual Studio for Mac allows you to start writing code for your apps. The following guides are provided to guide you through the next steps of writing and deploying your projects.
iOS
- Device Provisioning(To run your application on device).
Crossover Mac Visual Studio Code
Android
Xamarin.Forms
Build native cross-platform applications with Xamarin.Forms:
.NET Core apps, ASP.NET Core web apps, Unity game development
For other Workloads, refer to the Workloads page.