Skip to content

Instantly share code, notes, and snippets.

@uygary
Created January 30, 2026 19:03
Show Gist options
  • Select an option

  • Save uygary/a5dd33ace473878f501604657d843593 to your computer and use it in GitHub Desktop.

Select an option

Save uygary/a5dd33ace473878f501604657d843593 to your computer and use it in GitHub Desktop.
MonoGame Build Pipeline Shader Support Setup
# Hopefully this will become redundant once the shader support in the native Vulkan back-end is revamped post 3.8.5
sudo apt update \
&& sudo apt dist-upgrade \
&& sudo apt autoremove \
&& sudo apt autoclean \
&& sudo dpkg --add-architecture i386 \
&& sudo apt install dotnet-sdk-10.0 dotnet-sdk-9.0 dotnet-sdk-8.0 \
dotnet-runtime-10.0 dotnet-runtime-9.0 dotnet-runtime-8.0 \
wine wine64 wine32:i386 winetricks
# winetricks latest version check update disabled in the Debian package for privacy reasons.
# You may enable it by setting WINETRICKS_LATEST_VERSION_CHECK=enabled or creating ~/.config/winetricks/enable-latest-version-check
export WINEPREFIX=~/.winemonogame # Add this to .bashrc
WINEARCH=win64 winecfg # Follow the prompts to create the prefix and close the window
#winetricks d3dcompiler_47
winetricks -q d3dcompiler_47
export MGFXC_WINE_PATH=~/.winemonogame # Add this to .bashrc
#dotnet tool restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment