Skip to content

Commit 4efbda7

Browse files
Merge pull request MonoGame#47 from MonoGame/feature/382_update
Feature/382_update
2 parents 2996cfb + 15278f7 commit 4efbda7

23 files changed

+591
-568
lines changed

articles/getting_started/1_setting_up_your_development_environment_unix.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

articles/getting_started/1_setting_up_your_development_environment_vscode.md

Lines changed: 0 additions & 278 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Setting up your OS for development on MacOS
3+
description: This section provides a step-by-step guide for setting up your development environment on Mac.
4+
---
5+
6+
To develop with MonoGame in C#, you will need to install the .NET SDK. As of MonoGame 3.8.2 the minimum supported version is .NET 8.
7+
8+
## Install .NET 8 SDK
9+
10+
1. Navigate to [https://dotnet.microsoft.com/en-us/download/dotnet/8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
11+
2. Download the `.NET SDK` Installer for your current platform of `macOS`
12+
3. Once the **.pkg** file finishes downloading, run it and follow the prompts to install the .NET SDK
13+
14+
![Download .NET For Windows](./images/1_setting_up_your_development_environment/dotnet_8_download_page.png)
15+
16+
# Apple Silicon Known Issues
17+
18+
For the time being, MonoGame requires that you install the x64 version of the .NET runtime if you are running on an Apple Silicon mac in order to be able to build content. It is also required that [Rosetta](https://support.apple.com/en-us/HT211861) is enabled.
19+
20+
1. Navigate to [https://dotnet.microsoft.com/en-us/download/dotnet/8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
21+
2. Download the .NET Runtime Installer for macOS x64
22+
3. Once the **.pkg** file finishes downloading, run it and follow the prompts to install the .NET Runtime
23+
24+
## Setup Wine For Effect Compilation
25+
26+
Effect (shader) compilation requires access to DirectX. This means it will not work natively on macOS and Linux systems, but it can be used through [Wine](https://www.winehq.org/).
27+
28+
MonoGame provides a setup script that can be executed to setup the Wine environment for Effect (shader) compilation.
29+
30+
1. Install [brew.sh](https://brew.sh)
31+
2. Enter the following command:
32+
33+
```sh
34+
brew install p7zip curl && brew install --cask wine-stable
35+
```
36+
37+
3. Now that the prerequisites are installed, download the [mgfxc_wine_setup.sh](https://monogame.net/downloads/net8_mgfxc_wine_setup.sh) script and execute it by entering the following command in the terminal:
38+
39+
```sh
40+
wget -qO- https://monogame.net/downloads/net8_mgfxc_wine_setup.sh | bash
41+
```
42+
43+
This will create new directory called `.winemonogame` in your home directory. If you ever wish to undo the setup this script performed, just simply delete that directory.
44+
45+
## Next Steps
46+
47+
Choose from one of the two IDE options on macOS:
48+
49+
- [Setting up VSCode](./2_choosing_your_ide_vscode.md)
50+
- [Setting up Rider](./2_choosing_your_ide_rider.md)

0 commit comments

Comments
 (0)