Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# C# Objects Loops and Final Touches Magic Numbers and Constants

Error messages after compiling

Since we hadnt compiled in a while, I was not expecting the ammount of error messages that would appear. Id appreciate if anyone whose doing this course could help.

Game.cs(13,22): warning CS0219: The variable path' is assigne d but its value is never used Invader.cs(12,65): error CS1061: TypeTreehouseDefense.Path' does not contain a definition for Length' and no extension me thodLength' of type TreehouseDefense.Path' could be found. Are you missing an assembly reference? Path.cs(3,11): (Location of the symbol related to previous err or) MapLocation.cs(13,21): error CS0161:TreehouseDefense.MapLoca tion.InRangeOf(TreehouseDefense.MapLocation, int)': not all co de paths return a value
Point.cs(26,13): warning CS0162: Unreachable code detected
Tower.cs(20,28): error CS1061: Type TreehouseDefense.Invader' does not contain a definition forIsActive' and no extension method IsActive' of typeTreehouseDefense.Invader' could be found. Are you missing an assembly reference?
Invader.cs(3,11): (Location of the symbol related to previous error)
Compilation failed: 3 error(s), 2 warnings

Tim Danner
Tim Danner
3,281 Points

Would you mind posting all the codes from Game.cs, Point.cs, Tower.cs, MapLocation.cs and Invader.cs?

Steven Parker
Steven Parker
216,012 Points

Posting all that code would be rather messy, but here's a video that explains how to make a workspace snapshot. Then you can just share the link to it.