How To: Add DigitalRune Graphics to a Project |
This topic explains the steps necessary to add this library to a C# XNA game project in Visual Studio.
This topic contains the following sections:
Before types of this library can be used in a .NET project, references to the required assemblies must be added to the project. These are:
See Files, Folders and Dependencies to learn where these files are located.
To add an assembly reference in Visual Studio in a C# project, follow these steps:
DigitalRune Graphics includes pre-built assets (see Pre-Built Content) which are required for certain advanced features. To include the assets in the build process, add the DigitalRune Graphics content project to the solution:
Depending on the target platform select
<DIGITALRUNE_FOLDER>\Content\XNA\Windows\DigitalRune.Graphics (Windows).contentproj
or
<DIGITALRUNE_FOLDER>\Content\XNA\Xbox360\DigitalRune.Graphics (Xbox 360).contentproj
and click Open.
Then add a content reference to the main project:
Now, when the main project is built, the DigitalRune assets are automatically copied into the output folder.