getting started with .net core on linux

12
C# Corner Annual Conference 2017 April 7-9, 2017 Delhi India #CSharpCon17 Getting started with .NET Core on Linux

Upload: jochen-kirstaetter

Post on 22-Jan-2018

93 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Getting started with .NET Core on Linux

Page 2: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

नमस्ते – I’m “JoKi”

Jochen Kirstätter

4x Microsoft MVPFounder of an IT community in MauritiusGet Blogged by JoKi – http://jochen.kirstaetter.name

Family guy, geek, entrepreneur, software craftsman: Visual FoxPro, C#, SQL Server, MySQL/MariaDB,

Linux consultant, Conference speaker

Page 3: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Brief Agenda

Quick overview of Linux

Installation .NET Core on Ubuntu 16.04

dotnet command line tool

Building an application

Developing .NET Core using Visual Studio Code

Accessing databases on Linux

Page 4: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Quick overview of Linux

Personal project of student Linus Torvalds“Just a hobby”

Usenet posting to “comp.os.minix”

Source code to FTP server

Free (as in speech & in beer)

The rest is history… ;-)

Page 5: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Linux distributions

Ubuntu

RedHat Enterprise Linux

Debian

openSUSE

And many more…

Page 6: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Installation .NET Core

Start your engines here: https://dot.net/core

Choose your distribution

Add the repository locally (incl. crypto key)

Install .NET Core SDK

Done!

Page 7: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

dotnet command line tool

Warning: Check the version number different features!

dotnet --helpgives an overview of features available

dotnet new

dotnet restore

dotnet run

Page 8: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Can we fix this? – Yes, we can!

“Talk is cheap, show me the code” – Linus Torvalds

Page 9: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Developing .NET Core on Linux

Any text editor and the “dotnet” command line tool

Recommendation: Visual Studio CodeFree, light weight cross-platform editor

Extensible with plugins – C# and mssql extension

Debugging features

Built-in Git

Integrated terminal – easier access to “dotnet”

Page 10: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Access to databases

System.Data offers various clientsMicrosoft SQL Server – http://sqlserveronlinux.com

MySQL

MariaDB

Entity Framework Corea lightweight, extensible, and cross-platform version of Entity Framework

Namespace: Microsoft.EntityFrameworkCore

https://docs.microsoft.com/en-us/ef/

Page 11: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

Not ready for Linux?

Windows 10 Anniversary Update or higher

Bash on Ubuntu on WindowsCheck Windows Features

Enable Subsystem for Linux

Reboot

Run “bash”

Install dotnet here… ;-)

Page 12: Getting started with .NET Core on Linux

C# Corner Annual Conference 2017April 7-9, 2017 Delhi India

#CSharpCon17

बहुत बहुत धन्यवाद

Stay in touch: @JKirstaetter – [email protected]

C# Corner, LinkedIn, Facebook, Google+, GitHub, Blog, etc…