Moses Aprico
Moses Aprico

Reputation: 2121

How to set xnb files on Monogame Windows Phone 8 Game project?

I never found any tutorial to make xnb files works. They are all using non Windows Phone 8 (Win 8 metro, etc) way.

Can someone guide me to make my xnb files workable at MonoGame Windows Phone 8 Game project? Because nothing I googled is doing any good.

Also, can I create an XNB using XNA Windows Game Project (with VS 2010) or does it need the project to be Windows Phone Game (I haven't Installed WPhoneSDK 7.1, but have installed the 8th in VS2012)

I so far use several ways and keep resulting in Microsoft.Xna.Framework.ContentLoadException

Thanks

Upvotes: 2

Views: 2804

Answers (1)

ClassicThunder
ClassicThunder

Reputation: 1936

  1. Compile the assets into xnb's using the XnaContentCompiler.

  2. Put the files in the content folder that is created with your MonoGame template.

  3. Change the properties to Build Action = Content and Copy to Output Directory = Copy if Newer.

  4. Do your normal thing var t = Content.Load<Texture2D>(@"TextureName");.

Upvotes: 8

Related Questions