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.

Hamilton Mtungwazi
1,868 Pointsmy code is failing to compile,someone to help,and its talking of missing an assembly point
Game.cs(17,31): error CS1061: Type TreehouseDefense.Point' does not contain a definition for
DistanceTo' and no extension
method DistanceTo' of type
TreehouseDefense.Point' could be found. Are you missing an assembly reference?
Point.cs(5,11): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
2 Answers

Jennifer Nordell
Treehouse TeacherHi there! Unfortunately, without seeing your code, this will be hard to debug. The easiest way for us to see your code is for you to provide a "snapshot" of your workspace. On the upper right-hand side of your workspace, you'll find a camera icon. Clicking this icon will create a "snapshot" which you can link here. We can then "fork" or create a copy of it and take a look around.
But take a moment and look carefully at your Point
class and make sure there is a method defined named DistanceTo
. Make sure both the spelling and capitalization are correct. DistanceTo
, distanceTo
, and Distanceto
would all be considered different methods in C# as everything is case sensitive.

Hamilton Mtungwazi
1,868 PointsThank you very much Jennifer,you just made me take note of what i was missing...you are a star!
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherI changed this to an answer as the generic tip was helpful in solving the problem