net core in the real world

9
.NET Core in the Real World Nate Barbettini @nbarbettini recaffeinate.co

Upload: nate-barbettini

Post on 15-Apr-2017

545 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: NET Core in the Real World

.NET Core in the Real WorldNate Barbettini @nbarbettini

recaffeinate.co

Page 2: NET Core in the Real World

Getting Started● Install .NET Core SDK

● Update Visual Studio (if on Windows)

Page 3: NET Core in the Real World

dotnet cli

● Even if you’re using Visual Studio, the new CLI is very useful!

dotnet newdotnet restoredotnet builddotnet pack

Page 4: NET Core in the Real World

Apps and Libraries

● Console, web, and test projects target netcoreapp1.0

● Libraries target netstandard1.X

● Lower = more compatibilityHigher = more features/APIs

Page 5: NET Core in the Real World

Current Frustrations

● Visual Studio tooling is still unpolished

● Most Nuget packages don’t support netstandard yet

● Confusion or lack of documentation online

Page 6: NET Core in the Real World

1. Create a project.json/xproj next to your csproj

2. Tweak netstandard version3. Fix errors, repeat4. Profit!

Converting Existing Code?

Works fine!

Page 7: NET Core in the Real World

Building for both .NET 4.5 & .NET Core

It’s possible!

Page 8: NET Core in the Real World

Demo

Page 9: NET Core in the Real World

Thank you!

Nate Barbettini@nbarbettini

recaffeinate.co .ws