aspnetcore

A 28-post collection

Using global tool "dotnet outdated" to check for the latest NuGet package updates

Just recently the .NET Core June 2018 Update dropped and the ASP.NET Workshop I had just set up for CI/CD build was in need of an update to 2.1.1 (Release Notes). Get the latest 2.1.1 Runtime | 2.1.301 SDK from the downloads page at http://dot.net/ Looking through all of the save-points there are and of course the main /src, the challenge is to know what NuGet packages have changed and what versions are the latest etc., to be updated. That is where a great .NET global tool, dotnet-outdated comes in to play. Read more about dotnet global tools in the docs Install the tool using the .NET CLI - dotnet tool...


Learning DevOps, building the ASP.NET Core Workshop, and keeping it up to date

DevOps is the union of people, process, and products to enable continuous delivery of value to our end users. – Donovan Brown Build Status BackEnd Web API FrontEnd Razor Page App How often have you gone to a GitHub repo and found that the sample code is not up to date with the latest SDK, or doesn't even build? Over the last couple of weeks, I have jumped into updating (again) the ASP.NET Core Workshop the team uses for 1 and 2-day sessions at various conferences to .NET Core 2.1. However, as a part of that, we wanted to make sure that any future changes were checked and didn't just work on my machine. The workshop has a lot...


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...


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...


Push your images to Azure CDN on publish with gulp

Performance is always at the top of my mind when developing a web app. Using tools such as WebPageTest where a common hit against your grade will be the lack of CDN use will affect performance. Use of CDN - Each request for a piece of content to the web server has to travel from the user's browser all the way to the server and back. As you get further and further from the server this can become a significant amount of time (which adds up quickly as there are more requests on the page). Ultimately the time it takes is limited by the speed of light so there's not much you can do except to move your server closer...