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 trialMarco Bragado
921 PointsMap.cs(14,27): error : The type or namespace name `Point' could not be found. Are you missing an assembly reference?
Hey guys! Iv'e been working on the C# Objects modules and I have been following the videos up until the "Return Values" video. As the title suggest, I have been receiving the " Map.cs(14,27): error CS0246: The type or namespace name `Point' could not be found. Are you missing an assembly reference?" I have tried finding the solutions on the discussion board but have not seen this posted there so i thought I'd try here. My code looks exactly as the video but still cant quite figure out what I'm doing wrong. Its been 2 days.
Edit: Here is my snapshot of my work space for reference. https://w.trhou.se/9b6yvt44oy
2 Answers
Juan Lopez
Treehouse Project ReviewerIn Point.cs
you'll want to ensure you are creating a class with a capital 'P' in Point on line 3. Also don't forget to take out the int
in line 8
public Point(int x, int y)
{
X = x;
Y = y;
}
And then in Map.cs
line 8 looks like you misspelled height
Marco Bragado
921 PointsThis fixed my problem, thank you so much! I'm able to continue with my learning now! Thanks again!