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 trial

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
231,268 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.