.NET Core - Lunch and Learn

.NET Core - Lunch and Learn  - Session 1

Agenda:


  • What is .NET Core
  • Install .NET Core SDK
    • Use Command Line Options
  • Visual Studio Code
    • Install & use IDE
    • Run / Debug
  • Visual Studio 2017 
    • XXX



What is .NET Core

 

.NET Core is a general-purpose development platform maintained by Microsoft and the .NET community on GitHub. It is cross-platform, supporting Windows, macOS and Linux, and can be used in device, cloud, and embedded/IoT scenarios.
The following characteristics best define .NET Core:
  • Flexible deployment: Can be included in your app or installed side-by-side user- or machine-wide.
  • Cross-platform: Runs on Windows, macOS and Linux; can be ported to other operating systems. The supported Operating Systems (OS), CPUs and application scenarios will grow over time, provided by Microsoft, other companies, and individuals.
  • Command-line tools: All product scenarios can be exercised at the command-line.
  • Compatible: .NET Core is compatible with .NET Framework, Xamarin and Mono, via the .NET Standard.
  • Open source: The .NET Core platform is open source, using MIT and Apache 2 licenses. Documentation is licensed under CC-BY. .NET Core is a .NET Foundation project.
  • Supported by Microsoft: .NET Core is supported by Microsoft, per .NET Core Support


Relationship to .NET Standard


The .NET Standard is an API spec that describes the consistent set of .NET APIs that developers can expect in each .NET implementation. .NET implementations need to implement this spec in order to be considered .NET Standard-compliant and to support libraries that target .NET Standard.  
.NET Core implements .NET Standard, and therefore supports .NET Standard libraries.
By itself, .NET Core includes a single application model -- console apps -- which is useful for tools, local services and text-based games. Additional application models have been built on top of .NET Core to extend its functionality, such as:

Documentation

https://docs.microsoft.com/en-us/dotnet/core/


Hands on Session

 

Get .NET Core Installed

 

http://dot.net/

- Download

- Download .NET Core SDK

 

Use Command-line first

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet?tabs=netcore2x

 

Create Folder:

C:\dotnetcore\Walkthrough1


Powershell - review commands

- Go to directory

- dotnet

- dotnet –help (get help at top level)

- dotnet –version

- dotnet

- dotnet new –help   (can get help on new)


Build Application

- dotnet new console

- dotnet build

 - dotnet run

 - Confirm working....‘Hello World’

 

Maybe use Sublime


- Maybe change Program.cs File

- Console.WriteLine(args[0]);

- dotnet run testParm


Create another Solution

- C:\dotnetcore\Walkthrough2

- dotnet new razor

- dotnet build

- dotnet run

http://localhost:5000


Now make a mistake

dotnet build

- See error

 

Command line is nice but who does this...

 

Lets next go to Visual Studio Code

- Google with Bing

- https://code.visualstudio.com/


Go to C:\dotnetcore\Walkthrough2

Code . -> Opens Visual Studio Code

Open Folder

Required assets to build and debug are missing from 'Walkthrough2'. Add them?  -- YES!!!

Comments

Popular posts from this blog

Intro to MongoDB

Starting our .NET Core WebAPI Journey – Step 2