Successfully reported this slideshow.
Your SlideShare is downloading. ×

Code on the Beach 2019 - Let's Take a Tour of .Net Core: CLI

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Webkit overview
Webkit overview
Loading in …3
×

Check these out next

1 of 28 Ad

Code on the Beach 2019 - Let's Take a Tour of .Net Core: CLI

Download to read offline

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.

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.

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Similar to Code on the Beach 2019 - Let's Take a Tour of .Net Core: CLI (20)

Advertisement

More from Brian McKeiver (15)

Advertisement

Recently uploaded (20)

Code on the Beach 2019 - Let's Take a Tour of .Net Core: CLI

  1. 1. Let’s Take a Tour of .Net Core: CLI Brian McKeiver
  2. 2. BizStream About Me Brian McKeiver Co-Owner, Solution Architect, Kentico MVP 2 @mcbeev linkedin.com/in/brianmckeiver mcbeev.com github.com/mcbeev
  3. 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
  4. 4. BizStream .Net Core CLI Solution: a Command Line Interface 4 Project.json
  5. 5. BizStream 5
  6. 6. BizStream .Net Core CLI 1.1+ Solution: a compatible Command Line Interface 6 MSBuild
  7. 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. 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
  9. 9. BizStream 9 Our Scenario Let’s try this thing out. But one more thing to explain.
  10. 10. BizStream 10
  11. 11. BizStream 11
  12. 12. BizStream Demo: Managing Projects and Solutions 12
  13. 13. BizStream 13 https://docs.microsoft.com/en-us/dotnet/core/tools/enable-tab-autocomplete Tab Completion
  14. 14. BizStream Recap / Takeaways Three Ways to Handle Projects and Solutions ○ 1. Manually edit ○ 2. Via IDE like Visual Studio ○ 3. Using CLI 14
  15. 15. BizStream Demo: Build, Run, Publish 15
  16. 16. BizStream Recap / Takeaways Heart of the CI Pipeline ○ Provides automation ○ Reduces errors ○ Saves time 16
  17. 17. BizStream Demo: Test 17
  18. 18. BizStream Recap / Takeaways Basically Test Explorer ○ Can be automated in CI ○ Works with multiple test frameworks 18
  19. 19. BizStream 19
  20. 20. BizStream Demo: Tooling Fun 20
  21. 21. BizStream Recap / Takeaways Extensibility ○ Dotnet watch for live reload ○ Build your own ○ Better than npm? ○ Find more -------> 21
  22. 22. BizStream 22https://weblog.west-wind.com/posts/2019/May/18/Live-Reloading-Server-Side-ASPNET-Core-Apps
  23. 23. BizStream Demo: Nuget Package Support 23
  24. 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
  25. 25. BizStream .Net Core CLI Broken out by functionality Managing Projects / Solutions • dotnet new • dotnet add • dotnet sln • dotnet add package • dotnet add reference Build, Run, Test, Publish • dotnet restore • dotnet build • dotnet clean • dotnet run • dotnet test • dotnet vs-test • dotnet publish Extending and Packaging • dotnet tool • dotnet watch • dotnet pack • dotnet store • dotnet <your command> 25
  26. 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. 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
  28. 28. Thank You Brian McKeiver 616-481-1631 brian@bizstream.com https://www.bizstream.com/

×