Olle Hakansson:Heya, I'm trying to use some shaders in both my game and editor projects. I was hoping to add them as normal content in my Shared project, but I can't figure out how I would then access the content. The ContentManager constructor seems to assume that you want to load content from the same project. Is it possible to have a setup as I described or must I resort to duplication?
If you have an XNA Game project that references an XNA Game Library project, all of the .xnb files built by the XNA Game Library's content project should be copied over into the "Content" subfolder of the Xna Game project's output folder. Then you can just load that content normally with a ContentManager. Do you see the .xnb files getting copied into output folders of your game and editor projects?
Matt Pettineo | DirectX/XNA MVP
Ride into
The Danger Zone |
PIX With XNA Tutorial