Getting started with .NET Core

Shayne Boyer - Apr 25 '18 - - Dev Community

.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...

What if you just want to try it out?

No installing anything...

Head over to the in browser tutorial

Try .NET In Browser

Getting the bits

Head over to https://dot.net and click the Download 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.

Visual Studio Workloads

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

Create a new web application called devto

dotnet new web --name devto
Enter fullscreen mode Exit fullscreen mode

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

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.
Enter fullscreen mode Exit fullscreen mode

Now cd into the folder and run the web application.

cd devto 
dotnet run
Enter fullscreen mode Exit fullscreen mode

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player