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.

C# C# Basics C# Syntax Hello, World!

William Twiner
William Twiner
45 Points

Cannot print hello

Stuck on the very first one. Do not want to go back and look at the original answer. Tried to see if I could get the info from the TYPES video, but I am lost. It keeps saying Console does not contain a definition. Please help

Program.cs
class Program
{
    static void Main(string[] args)
    {
        // YOUR CODE HERE
        string greeting = "Hello!";
        System.Console.Writeline (greeting);
    }
}

2 Answers

Steven Parker
Steven Parker
212,081 Points

The system should have displayed this message: Bummer: You need to call the System.Console.WriteLine method. Maybe you misspelled WriteLine?

And that's exactly the issue, "WriteLine" needs to be spelled with a capital "L".

William Twiner
William Twiner
45 Points

Thank you so much. ahhhhh, I am so new to C# that I am sure it was there. Thank you for taking the time to help me on this.