Skip to content

Adding Reference to Myra

Roman Shapiro edited this page Sep 7, 2019 · 29 revisions

There are two ways of referencing Myra in the project:

  1. Through nuget: install-package Myra for MonoGame(or install-package Myra.FNA for FNA)

  2. As submodule:

    a. git submodule add https://github.com/rds1983/Myra.git

    b. git submodule update --init --recursive

    c. Copy SolutionDefines.targets from Myra/build/MonoGame(or Myra/build/FNA) to your solution folder.

    • If FNA is used, SolutionDefines.targets needs to be edited and FNAProj variable should be updated to the location of FNA.csproj next to the Myra location.

    d. Add Myra/src/Myra/Myra.csproj to the solution.