From the course: Source Code Control in .NET with Git Using SourceTree

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating a simple console app

Creating a simple console app

From the course: Source Code Control in .NET with Git Using SourceTree

Start my 1-month free trial

Creating a simple console app

- [Narrator] To get started, let's create a new project in Visual Studio. We're going to create the canonical Hello World program. So we'll come down to .NET and to Console Project and click Next. Let's give it a name, HelloWorld, and notice the option to use git for version control. You don't have to do that from within Visual Studio, but it saves a bit of work, so we'll go ahead and check that, and it's going to create a gitignore file for us. Gitignore is used to ignore files that should not be in source control. We'll take a look at that as well as we go. Let's go ahead and create our console application and there it is, Hello World. Let's run that, and you can see it comes up, and very simply says, "Hello World!" Let's go to the directory that we put that in. In our projects directory, we have HelloWorld, and in HelloWorld, you can see the solution and user preferences, but you don't see the git directory, and that's because it's hidden. In order to see the git directory, you're…

Contents