The .NET Core command-line interface (CLI) allows developers to easily automate and script many tasks in the .NET world. From create new projects in seconds, to automating builds, to setting up better CI with automated testing, and making working with containers possible, this new CLI can almost do it all (especially if you are coming from the full framework world). Join my session to see the .NET Core CLI in action and put it through its paces. This really is a must have tool for any .NET Core developer out there.
3. BizStream
The Problem – Tooling is Hard
Projects
Paths, properties,
references for our code
since the 90s.
Solutions
Now throw a bunch of
project files together to
complicate things.
Cross Platform
We want to be able to
build on windows, unix,
mac, mobile, but how.
Legacy Code
Don’t forget the billions
of lines of code already
out there.
Full Framework
Not just .Net Core, but
Standard and Full
Framework as well.
3
7. BizStream
Command Structure
The .Net Core CLI Command Structure consists of
dotnet
The Driver.
Where the pattern
starts from.
new
The Command.
Also known as
Subcommands,
these are the
“verb”.
-h
The Options.
Not always needed
but these are the
“arguments”.
7
8. BizStream
One Big Wrapper
Dotnet CLI
MSBuild
8
○Many commands handed
directly to MSBuild
○Others are not (new, sln,
pack)
○ B.Y.O.T
24. BizStream
Recap / Takeaways
Package quickly with CLI
○ Best way on a mac
○ Create nuget.org account
○ You can unlist packages too
24
//Create the package in Release mode in the out directory
dotnet pack .KenticoCacheDoctor.csproj -o ....out -c Release -p:PackageVersion=1.0.2
dotnet nuget push .KenticoCacheDoctor.1.0.1.nupkg --api-key
oy2jahww6hsj7o4qn2kkn7w4bl3edontstealmykeyAvx -s https://api.nuget.org/v3/index.json
26. BizStream
○.Net Core CLI is a must
have tool for any
developer out there who
works with .Net.
○Automate as much as
possible in your projects.
○Forget you ever heard
about project.json.
○Kentico Cloud is a great
Headless CMS for .Net.
.Net Core CLI
In Summary
26
27. BizStream
Questions?
What’s the best lunch spot
today?
“ ”
Is there such a thing as too
much sunscreen?
“ ”
Where can I find out more
about Kentico or BizStream?
“ ”
27