Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to build a terrain starting from a heightmap. I've already some ideas about the procedure, but I can't even get started. I feel like I have to use a MeshBuider. The problem is that Visual Studio (I'm using the 2008 version) wants an assembly. Effectively on the MSDN there's a line specifying the assembly needed by the MeshBuilder, but I don't know how to import/load it.
Any suggestions?

Thanks in advance :)

share|improve this question
Are you trying to load this assembly at runtime? XNA's content pipeline is designed to run at build time and is only available on windows - not XBox. New content pipeline projects should reference this correctly with XNA installed. – Leniency Feb 2 '11 at 20:11
@Leniency: I'm developing for windows. And no, I'm trying to load at build time. – BlackBear Feb 2 '11 at 20:13
up vote 2 down vote accepted

Okay, then you need to add a reference to the content pipeline assemblies from your game project. XNA by default won't do this.

In VS -> Project Menu -> Add Reference. Under the .NET tab, you'll find everything. It's helpful to sort by component name. You're looking for the component Microsoft.Xna.Framework.Content.Pipeline.

Don't add the importers, those are for converting resources into XNA's internal format in content pipeline projects.

share|improve this answer
it works. Thank so much! :) – BlackBear Feb 2 '11 at 20:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.