Sign in to follow this  
TheCompBoy

Problem with c#

Recommended Posts

Hey guys!
Yesterday i started to learn a litle bit C# to create games with XNA but when i try to run my code i get some problem that i realy don't understand whant am doing wrong..

Here is before i compile it, you can see my code i load the picture from its folder..
[url="http://tinypic.com/r/b6at8k/7"]http://tinypic.com/r/b6at8k/7[/url]

And here you can see the message i get when i try to run the code.
[url="http://tinypic.com/r/5bab02/7"]http://tinypic.com/r/5bab02/7[/url]

Please tell me what i did wrong..

Share this post


Link to post
Share on other sites
Your sprites folder needs to be under the content project, not the code project (move 'sprites' folder to the one at the bottom of your workspace, titled 'oskargamecontent'). If you don't put assets here, the content pipeline cannot process them and turn them into xnb files, so they won't be found.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this