Speed up your Azure DevOps Pipelines! By combining Shallow Fetch and turning off the Sync Tags option you can dramatically decrease the amount of time it takes to fetch your git repo.
If you want your node/npm based project to use a specific version of Node and NPM, it’s best to enforce that using the engines setting in package.json. In today’s episode, we do just that with the ASP.NET Monsters blog repo and even configure GitHub Actions to install the correct version onf Node based on the engines specified in package.json.
Changes we made to package.json and our GitHub Actions Workflow:
Volta for integrating with your shell https://volta.sh/
Taking the next step from our last video we incorporate Razor into building PDFs
In this video we’ll look at how to generate PDFs from inside a functions app using https://github.com/HakanL/WkHtmlToPdf-DotNet
The new IEnumerable Debugger Visualizer in Visual Studio makes it easy to display (and even export) large collections when debugging your code.
Check out these tips for making it easier to visualize collections (arrays, lists, etc.) in the Visual Studio Debugger.
DebuggerDisplay Attribute - https://docs.microsoft.com/en-us/visualstudio/debugger/using-the-debuggerdisplay-attribute?view=vs-2022
Virtual scrollers allow for faster interaction with the DOM by reducing the number of expensive nodes that need to be rendered. You can check out a couple here:
In a previous episode, we looked at how we can use the Template element to reuse a block of HTML. Now, let’s take that a step further and use a few other native browser technologies (Shadow DOM, Custom Elements, and Slots) to build a Web Component.
Shadow DOM - https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM
Custom Elements - https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements
Templates and Slots - https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots
Previous Episode: https://www.youtube.com/watch?v=jeBjW-TCCx4&t=2s
We have some outstanding pull requests to the GenFu project. In today’s episode, we take some time to review those PRs and get them merged in.
Hitting tab to suggest a parameter to your console app is made easy with dotnet-suggest and the console API tooling. Join James and Dave as they have a look at getting suggestions running on your dotnet apps.
Thanks to viewer OzBob for this suggestion!
A link to the Lemonade (DrinkStand) project:
Here’s the info you need to install and enable suggestions in your shell: