Welcome to the Treehouse Community
Looking to learn something new?
my 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 forDistanceTo' and no extension
DistanceTo' of typeTreehouseDefense.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
Jennifer NordellTreehouse Teacher
Hi 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 would all be considered different methods in C# as everything is case sensitive.
Thank you very much Jennifer,you just made me take note of what i was missing...you are a star!