net core in the real world
TRANSCRIPT
.NET Core in the Real WorldNate Barbettini @nbarbettini
recaffeinate.co
Getting Started● Install .NET Core SDK
● Update Visual Studio (if on Windows)
dotnet cli
● Even if you’re using Visual Studio, the new CLI is very useful!
dotnet newdotnet restoredotnet builddotnet pack
Apps and Libraries
● Console, web, and test projects target netcoreapp1.0
● Libraries target netstandard1.X
● Lower = more compatibilityHigher = more features/APIs
Current Frustrations
● Visual Studio tooling is still unpolished
● Most Nuget packages don’t support netstandard yet
● Confusion or lack of documentation online
1. Create a project.json/xproj next to your csproj
2. Tweak netstandard version3. Fix errors, repeat4. Profit!
Converting Existing Code?
Works fine!
Building for both .NET 4.5 & .NET Core
It’s possible!
Demo
Thank you!
Nate Barbettini@nbarbettini
recaffeinate.co .ws