Skip to content

Adding Reference to Myra

Roman Shapiro edited this page Jul 26, 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. Through source code:

    a. Add Myra source code to the project(i.e. as git submodule).

    b. Copy SolutionDefines.targets from build/MonoGame(or 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.

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