Brad Bird
Brad Bird

Reputation: 737

XNA Sprite - File Not Found

I am trying to learn XNA by using Microsoft's tutorials and I am stuck on adding sprites to my content folder. At first I could not find my "Content" directory.

Solution Explorer

As seen in the above image I managed to add a sprite to IC2013-2Content. Is this right so far? I also managed to give it the name "megaman" which I read creates a .xnb file and adds it to the content folder in the solution directory as seen in the next image.

XNA Project Directory

I assume that is the correct directory the .xnb file should be in? When I try and run my program I get this error.

Coding error

Sorry for the overload of images. Does anyone know why I keep getting the File Not Found error?

Thank you.

Upvotes: 1

Views: 508

Answers (1)

Brad Bird
Brad Bird

Reputation: 737

Nevermind, I figured that because the .xnb file was in a folder called Images I changed the Content.Load to incorporate the sub-directory and it's now working!

Upvotes: 3

Related Questions