Linking FNA
Last updated
Last updated
By default FlatRedBall projects link pre-built binary files including prebuilt FNA libraries. You may want to link your FlatRedBall project to FNA source for improved debuggability or to contribute back to FNA.
This document includes the required steps for linking your game to FNA.
Before you link your game to FNA, you must first link your game to FRB source. If you do not do this, then the FlatRedBall.FNA nuget package will include FNA which results in the FNA libraries being included twice.
Follow the steps outlined here to link your game to source: Linking your Game to FlatRedBall Source.
Once you have finished these steps, your solution should include your game project and all FlatRedBall source projects.
FNA is a submodule of the FlatRedBall repository so be sure you clone FlatRedBall recursively to get FNA.
By default FlatRedBall templates include FNA binaries which are marked as copy if newer. These can be found in your game's csproj at the root level:
These are marked as copy if newer:
If you would like to update these to the latest version, you can:
Download the latest daily files from https://github.com/FNA-XNA/fnalibs-dailies/actions
Unzip the folder for x64
Copy the files into your game project
The latest .dll files will now be copied to your bin folder whenever the game is built.