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 trialFabiola Barrientos
9,467 PointsError 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: Type
TreehouseDefense.Path'
does not contain a definition for Length' and no extension me
thod
Length' 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 for
IsActive' and no extension
method IsActive' of type
TreehouseDefense.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
Steven Parker
231,275 PointsPosting 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.
Tim Danner
3,284 PointsTim Danner
3,284 PointsWould you mind posting all the codes from
Game.cs
,Point.cs
,Tower.cs
,MapLocation.cs
andInvader.cs
?