Creating RazorPage apps using the CLI

While I was creating a recent test application with Razor Pages, I found myself clicking the "new file" button in VS Code too many times when I wanted to add a new Page. I really love the .NET CLI and with every release, there seems to be something I discover that has been added to either the core functionality or the templates. Running dotnet new this time around I fell upon the page template... Within your application, run dotnet new page and a new Razor Page is added to to the project. See the -h|--help some items removed for brevity $ dotnet new page -h -n, --name The name for the output being created. If no name is specified, the...


Searching docs using a .NET Core global tool

In 2016 at the MVP Summit hackathon I put together a .NET Core CLI Tool to search for docs on docs.microsoft.com and it worked well, but there were some shortcomings. It was scoped to the project, and there was no way to install the Nuget package using the command line tools or package manager. <ItemGroup> <DotNetCliToolReference Include="dotnet-doc" Version="1.0.0" /> </ItemGroup> Now with the availability of .NET Core Global tools, see announcement post here, where we can install the Nuget package globally like a node.js package npm install -g <package_name>, I took a few hours to update the project. dotnet install tool -g dotnet-doc Getting Started...


Cross platform code coverage arrives for .NET Core

If you have done any node.js development and have been required to hit code coverage marks prior to check in or CI/CD builds; you probably have used a tool like istanbul to check your percentages. image from instabul.js.org Getting code coverage reports on the command line for .NET Core has been a gap, and unless you are using Visual Studio Test or a 3rd party pay for play; getting this information was still only Windows only. A few weeks ago I attended a hackathon at the Microsoft MVP Summit and saw a glimpse into coverlet from Toni Solarin (@tonerdo) and he has hit the nail on the head! Using the quick test example on the docs...


Workshop gets an update - JavaScript Services, Docker, Kubernetes and Helm!

If you've been to a conference around .NET in the last year or so, there's likely been workshop available from the .NET team. Jeff Fritz, Jon Galloway, Maria Naggaga, Damian Edwards and/or Daniel Roth and I have all presented in part some of the ConferencePlanner app. The workshop contains building an application from scratch in .NET Core using Razor Pages, Entity Framework, Web API. I spent some time over the last week updating the workshop to add options for using the updated JavaScriptServices and Deployment options with Docker, Kubernetes, and Helm. Adding JavaScript Services Adding Angular SPA using JavaScript Services Some great improvements have been made to the JavaScript Services for using Angular and React, integrating each frameworks' CLI...


Monitoring issues on Stack Overflow with serverless, CosmosDB and Teams

One of the responsibilities we have as Cloud Developer Advocates is having an understanding of the struggles of developers using the cloud in their daily tasks. One way to do that is to spend time looking over the latest questions on Stack Overflow with a little project called StackoverAzure. Instead of having yet another browser tab was to use serverless functions to monitor certain tags and send cards to our Teams room with the pertinent info for anyone on our team to quickly see the most recent unanswered questions. Concept Watch Stack Overflow for questions with the following parameters: Have NOT been answered. (no answer accepted) Tagged with azure Every 30 minutes, the process would grab the last fifty questions...