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 trialUnsubscribed User
1,653 PointsI Keep on getting this error.
I am trying to compile my script but I keep on getting this error:
Program.cs(8,7): error CS0246: The type or namespace name String' could not be found. Are you missing
System'
using directive?
I made sure there is nothing wrong because I copied the instructors code and pasted it and the error still came up. What can I do to fix this?
Steven Parker
231,248 PointsPlease show your code or provide a link to your workspace snapshot.
2 Answers
Steven Parker
231,248 PointsWithout seeing your code I have to guess, but I have two of them:
- you forgot to put "
using System;
" at the top of your source - you spelled "String" with a capital "S" where it should be "string".
Unsubscribed User
1,653 PointsOh hold on now its starting to work. I think it was the fact that I put a capital S. Thanks
Avan Sharma
7,652 PointsAvan Sharma
7,652 PointsI guess it should be just string.