Skip to content

Adding Reference to Myra

Roman Shapiro edited this page Feb 1, 2020 · 29 revisions

There are two ways of referencing Myra in the project:

  1. Through nuget: install-package Myra(works only for MonoGame)

  2. As submodule(works for all supported platforms):

    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.

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

    • If FNA is used, add deps/XNAssets/src/XNAssets/XNAssets.csproj too