DEV Community

Shayne Boyer for .NET

Posted on • Edited on

9 2

Getting started with .NET Core

.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

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up