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 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

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

Steven Parker
Steven Parker
231,248 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.