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# Objects Object-Oriented Programming Fields

C# - TreehouseDefense Game

treehouse:~/workspace$ mcs -out:TreehouseDefense.exe *.cs && mono Treehous eDefense.exe
Game.cs(43,21): error CS0117: TreehouseDefense.Level' does not contain a definition fortowers'
Level.cs(3,11): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

Can someone please explain to me why I received this error. Here is my code: https://w.trhou.se/hm2mzhl3sx

1 Answer

Steven Parker
Steven Parker
231,198 Points

Are you sure that's the right snapshot?

The error message refers to a file named "Level.cs", but your snapshot has no file by that name.

Check and see if you need to update that snapshot link.