Episode

Get Started with .NET Core and Visual Studio 2017

This is a quick tutorial for getting set up with Visual Studio and .NET Core.

https://www.microsoft.com/net/core#windowsvs2017

----------

Transcript

Hello! this is a video tutorial for

getting setup with Visual Studio and

.NET Core to write

cross-platform apps.

Let's get started.

>> First, go to your favorite

browser and search .NET Core.

The .NET Core download page will

be one of the first results,

it's microsoft.com/net/core.

Here, you can find the steps

I'll go over in this video.

Click Download Visual Studio 2017,

ooh, Xamarin University.

Wait, no, focus Kendra.

Okay, click on the exe,

and click Yes to run.

And hit Continue.

And don't worry,

I'll be speeding up all of these

installs with movie magic!

Now we can use Visual Studio

to get .NET Core.

In this video, I'll be creating a

simple cross-platform .NET Core app.

So with Visual Studio 2017, you get

the option to select what workloads

you wish to install along

with Visual Studio.

Click all of the boxes!

Woah, okay, that calculated

install size is pretty big.

It's appearing in the bottom corner.

Maybe I'll rein in my

excitement just for this demo.

I'll select .NET Core Cross

Platform, UWP .NET framework,

ASP.NET, and

Azure Development Workloads.

And you can see that install

size has gone down quite a bit,

which is great for my purposes.

And I have Container Development

Tools checked as well up there, and

Install.

So, Visual Studio and Visual

Studio Code are very different.

While Visual Studio Code

is a lightweight,

cross-platform source code editor.

Visual Studio is the integrated

development environment,

the mother ship, the fully featured

developer experience for C#,

Visual Basic and F#.

And the Visual Studio install

is finished so I'll hit lunch.

And I think I'm gonna

go with the dark theme.

Now, let's start our first .NET

Core project in Visual Studio.

I'll click File > New >

Project on the start page and

select .NET Core under

the C# drop down.

I'll make a console application.

And I'll just wait for

that to start up.

I'm going to make a console app that

prints create cross platform apps

with .NET Core and Visual Studio.

I'll add a Console.ReadLine(),

and I'll hit Debug.

So that's what it looks on Windows.

Now, I'm actually running Windows

on an image in parallels.

So, let's see the same DLL file I

just generated execute on my Mac.

All I need to do is navigate to

my DLL and my shared folder,

that'll be in my

Visual Studio project folder,

in my apps

bin/Debug/netcoreapp1.1 folder.

And to run, I'll type dotnet

ConsoleApp1.dll because

that's the name of my project's DLL.

So that's a DLL file

that I made with

Visual Studio on Windows

that can run cross-platform.

>> I swear there are some people

watching this video who just went

that's what .NET Core does.

That's fantastic!

This is for those people.

Thanks for watching.

Windows
C#