Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

C# - TreehouseDefense Game

https://w.trhou.se/asik28fcu6 I took a snapshot of all my source files for this treehouse defense game. Can someone please look over it to see if there are any problems with my code because I can't seem to get it to work. It keeps giving me compiler errors, so if someone could help me, it would be greatly appreciated.

1 Answer

Steven Parker
Steven Parker
231,122 Points

Your project seems to be missing a file.

All of your compiler messages are about not finding "MapLocation". And when I look at the files list I don't see the MapLocation.cs source file. So it looks like you have added code to the project that depends on this module, but you have not yet created that file.

I'd guess you either missed the place in the videos where this file is created, or they have directed you to add some references and are about to create it but did not expect you to try to build it in the intermediate state.

If you can't find where this file is created in the videos, you can get it from the project downloads.