Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
In this video, we'll explain the challenge that you'll be working to complete.
Code
Here's the code that you need to select, copy (CTRL+C
or CMD+C
), and paste (CTRL+V
or CMD+V
) into the Program.cs
file.
class Program
{
static void Main()
{
System.Console.WriteLine("I love learning C# at Treehouse!");
}
}
Help
For help on how to use Treehouse Workspaces, see this workshop.
For a review on how to use the Workspaces Console to compile and run a C# program, see this video from the C# Basics course.
[MUSIC]
0:00
Congrats on taking an important step in
the process of learning C#, practice.
0:04
Without practice, it's all too easy
to forget what you've just learned.
0:10
This practice session is one of a series
that we hope to create over time.
0:14
So please let us know how you liked it,
and if you'd like to see more like this.
0:18
In this session,
you'll practice creating a C# Workspace,
0:23
including compiling and
running a simple console application.
0:27
As long as you've completed up
through the first video of stage two
0:31
of the C# basics course, you'll know
everything that you need to know
0:35
in order to complete
these practice session.
0:39
Let's review the steps to take in
order to complete the session.
0:42
Using Treehouse Workspaces,
create a new C# Workspace,
0:45
and add a file name program.cs.
0:51
Then copy and
paste the code from the teacher's note for
0:54
this video into the program.cs file.
0:57
And lastly, using the Workspaces console,
compile, and run the program.
1:00
If you did everything correctly,
you should see the message,
1:06
I love learning C# at Treehouse, printed
to the console when you run the program.
1:10
Remember, you can create a new workspace
1:16
from the Workspaces section
of the Treehouse website.
1:18
If you get stuck at any point,
see the teacher's notes for hints and
1:22
links to videos that cover what you need
to know in order to complete this session.
1:26
And if you can't quite get it,
don't worry,
1:31
I'll show you how I did
it in the next video.
1:34
Good luck, and we'll see you in a bit.
1:37
You need to sign up for Treehouse in order to download course files.
Sign up