Installing a Custom Importer or Content Processor

This topic explains how to add a custom processor or importer to an existing game solution.

XNA Game Studio Express provides standard importers and processors for a number of common file formats used to store basic game assets such as models, materials effects, sprites, textures, and so on (for a list of the file formats that these standard importers and processors support, see Standard Importers and Processors). If you have game assets saved in a format that the standard importers and processors do not support, however, you may be able to find a custom third-party importer and/or processor for XNA Game Studio Express that supports that file format. If you have enough information about the file format, you can even build your own custom importer or processor, as described in How to: Write a Custom Importer and Processor.,XNAGameStudio.10).gifSecurity Note
Before you open an existing project or component, determine the trustworthiness of the code outside of the Visual Studio designer. Opening projects or components in the Visual Studio designer automatically executes that code on your local machine in the trusted process of VCSExpress.exe.

The following procedure shows how to add such a custom importer and processor to an existing game project. These steps assume that you have copied the new importer or processor to a local subfolder of the game project in question.

To add a custom importer or processor to a game project

  1. Open XNA Game Studio Express.
  2. Load the solution associated with your game.
  3. From Solution Explorer, double-click the Properties node. This opens the Properties window for your current project.
  4. Click the XNA Content Pipeline Assemblies tab.
  5. Click the Add button.
  6. Navigate to the folder containing the custom importer or processor.
  7. Select the custom importer or processor and click Open.
  8. Save the solution.

The new importer or processor now appears as one of the choices available to invoke for importing or processing a game asset that you add to your project.

See Also

Content Pipeline
Standard Importers and Processors