# XNA 4 Content Pipeline dependency

I tried to create something to parse XML with, which needs the inclusion of the Microsoft.Xna.Framework.Content.Pipeline; reference. This was fine and all, but as soon as I tried to debug, I got the error that it could not be resolved because it was in the wrong target framework; my main project uses the Client one.

What confuses me is that I can use the SkinnedModelProcessor in the same solution with no problems when it uses said non-Client framework. Why is this? Can I get mine to work without changing the main project's target framework?

My recommendation would be to parse your XML at build-time using a content pipeline extension. Or load your XML using some other .NET XML reading method. Or use a different serialisation format entirely, maybe simple text files, or something using BinaryReader/BinaryWriter.