Getting started with .NET Core
Tags: dotnet, opensource, aspnetcore, web
Published: 2018-04-25 16:45:46

---
title: Getting started with .NET Core
published: true
description: It's never been easier to get started with C# and .NET Core. No heavy IDE installations, a great command line experience and it's Open Source!
tags: #dotnet #opensource #aspnetcore #web
---


.NET is a FREE, Open Source developer platform for building all kinds of applications. Anything from web to mobile apps can be built on a Mac, Linux and yes Windows.

Disect that statement a bit...

* Open Source - look at [https://github.com/dotnet](https://github.com/dotnet) for all of the repositories related to .NET. Each represents a part of the platform. Some highlighted repos are:
    * [docs](https://github.com/dotnet/docs) which can be viewed at https://docs.microsoft.com/dotnet 
    * [CLI](https://github.com/dotnet/cli) - .NET Command Line tools
    * [CoreCLR](https://github.com/dotnet/coreclr) - .NET Core runtime, base library, containing the garbage collector and base type.
    * [ASP.NET](https://github.com/aspnet) - ASP.NET and Entity Framework projects. [Docs](https://github.com/aspnet/Docs) available at https://docs.microsoft.com/aspnetcore, [SignalR](https://github.com/aspnet/SignalR), [Mvc](https://github.com/aspnet/Mvc), [EntityFramework](https://github.com/aspnet/EntityFrameworkCore), [KestrelHttpServer](https://github.com/aspnet/KestrelHttpServer)

* Cross Platform - regardless of what OS you prefer to develop on; the .NET Core SDK and tools can be installed in a manner you like to develop. If its using a CLI experience, text editor such as [Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=devto-twitter-shboyer) or full IDE with [Visual Studio](https://www.visualstudio.com/?WT.mc_id=devto-twitter-shboyer) on Windows or MacOS with [Visual Studio for Mac](https://www.visualstudio.com/vs/mac/?WT.mc_id=devto-twitter-shboyer); .NET Core is available in any of these situations.

### What if you just want to try it out?

No installing anything...

Head over to the [in browser tutorial](https://www.microsoft.com/net/learn/in-browser-tutorial/1?WT.mc_id=devto-twitter-shboyer)

![Try .NET In Browser](https://pbs.twimg.com/media/Dbo6zhQVAAAPeI4.jpg)


### Getting the bits

Head over to [https://dot.net](https://dot.net/?WT.mc_id=devto-twitter-shboyer) and click the [Download](https://www.microsoft.com/net/download/?WT.mc_id=devto-twitter-shboyer) link to get the SDK relative your OS.

Another option is to install Visual Studio 2017, .NET Core is installed as a part of the [ASP.NET and web development workload](https://www.visualstudio.com/vs/support/selecting-workloads-visual-studio-2017/?WT.mc_id=devto-twitter-shboyer).

![Visual Studio Workloads](https://www.visualstudio.com/wp-content/uploads/2017/06/ASP.NETandWebDevelopment.png)
 
### Creating a quick app using the CLI

Open you favorite command prompt (bash, zsh, powershell, etc) and type `dotnet new` to see the available project templates.

![dotnet new templates](https://pbs.twimg.com/media/DbpGht6V0AAGt4m.jpg)

Create a new web application called `devto`

```bash
dotnet new web --name devto
```

The output shows the application was created and dependency packages were restored.


```bash
The template "ASP.NET Core Empty" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/template-3pn for details.

Processing post-creation actions...
Running 'dotnet restore' on devto/devto.csproj...
  Restoring packages for /mnt/c/Users/shboyer/play/devto/devto.csproj...
  Generating MSBuild file /mnt/c/Users/shboyer/play/devto/obj/devto.csproj.nuget.g.props.
  Generating MSBuild file /mnt/c/Users/shboyer/play/devto/obj/devto.csproj.nuget.g.targets.
  Restore completed in 3.26 sec for /mnt/c/Users/shboyer/play/devto/devto.csproj.


Restore succeeded.
```

Now cd into the folder and run the web application.

```bash
cd devto 
dotnet run
```

Browse to http://localhost:5000 on your machine and you've now created your first .NET Core web app using just the command line. No huge installation of an IDE and on any OS of your choosing.


### Resources

* Check out all of the open source docs for [ASP.NET Core](https://docs.microsoft.com/aspnet/?WT.mc_id=devto-twitter-shboyer) and [.NET Core](https://docs.microsoft.com/dotnet/core/?WT.mc_id=devto-twitter-shboyer) at [https://docs.microsoft.com/](https://docs.microsoft.com/?WT.mc_id=devto-twitter-shboyer).

* [https://dot.net](https://dot.net/?WT.mc_id=devto-twitter-shboyer)

* Any questions please reach out to me on twitter [@spboyer](https://twitter.com/spboyer)