getting started with .net core on linux

Post on 22-Jan-2018

93 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

#CSharpCon17

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

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

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… ;-)

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

#CSharpCon17

Linux distributions

Ubuntu

RedHat Enterprise Linux

Debian

openSUSE

And many more…

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!

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

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

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”

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/

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… ;-)

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

#CSharpCon17

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

Stay in touch: @JKirstaetter – jochen@kirstaetter.name

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

top related