Some times, I start with the examples given by Microsoft or other bloggers and modify them to my requirements. This works fine. The trouble starts when you want to combine some of the snippets from one of these projects with new projects. You start running into configuration problems.
I got the errors in model loading in XNA and images. One of the errors is given below.
I got this error Cannot find type Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent when I tried to run a Windows XNA project with models.
I also had errors about not finding images.
I had to move all the models and images to content. In addition I had to make sure in the properties of the model, we have the following:
- Build Action Compile
- Content Importer X File – XNA framework
- Content Processor – Model-XNA framework
I have the following for both Content Importer and Content Processor Texture- XNA Framework