Code coverage in .NET Core with Coverlet

Posted by Anuraj on Monday, May 14, 2018 Reading time :1 minute

.NET Core CodeCoverage Coverlet

Few days back I wrote a post about code coverage in ASP.NET Core. In that post I was using Visual Studio 2017 Enterprise, which doesn’t support Linux or Mac and it is costly. Later I found one alternative, Coverlet - Coverlet is a cross platform code coverage library for .NET Core, with support for line, branch and method coverage. Coverlet integrates with the MSBuild system, so it doesn’t require any additional setup other than including the NuGet package in the unit test project. It integrates with the dotnet test infrastructure built into the .NET Core CLI and when enabled, will automatically generate coverage results after tests are run.

Getting started with SignalR service in Azure

Posted by Anuraj on Tuesday, May 8, 2018 Reading time :2 minutes

ASP.NET Core SignalR Azure

This post is about how to work with SignalR service in Azure. In Build 2018, Microsoft introduced SignalR in Azure as a service.

Static Code Analysis of .NET Core Projects with SonarCloud

Posted by Anuraj on Thursday, May 3, 2018 Reading time :2 minutes

ASP.NET Core Static Code Analysis SonarCloud

This post is about how to use SonarCloud application for running static code analysis in .NET Core projects. Static analysis is a way of automatically analysing code without executing it. SonarCloud is cloud offering of SonarQube app. It is Free for Open source projects.

Working with Microsoft Library Manager for ASP.NET Core

Posted by Anuraj on Saturday, April 28, 2018 Reading time :2 minutes

ASP.NET Core LibMan

This post is about Working with Microsoft Library Manager for ASP.NET Core. Recently ASP.NET Team posted a blog - about bower deprecation. And in there they mentioned about a new tool called Library Manager - Library Manager (“LibMan” for short) is Visual Studio’s experimental client-side library acquisition tool. It provides a lightweight, simple mechanism that helps users find and fetch library files from an external source (such as CDNJS) and place them in your project. LibMan is not a package management system. If you’re using npm / yarn / (or something else), you can continue use it. LibMan was not developed as a replacement for these tools.

How to reuse HTML snippets inside a Razor view in ASP.NET Core

Posted by Anuraj on Thursday, April 19, 2018 Reading time :1 minute

ASP.NET Core Razor

This post is a small tip about reusing HTML snippets inside a Razor view in ASP.NET Core. In earlier versions of ASP.NET MVC this could be achieved with the help of helper - A helper is a reusable component that includes code and markup to perform a task that might be tedious or complex. But there is no equivalent implementation is available in ASP.NET Core MVC. In this post I am explaining how we can achieve similar functionality in ASP.NET Core. Unlike ASP.NET MVC, this implementation, you can’t use it in multiple page. This is very helpful if you want to do some complex logic in view.

Getting started with Blazor

Posted by Anuraj on Sunday, April 8, 2018 Reading time :2 minutes

ASP.NET Core Blazor

This post is about how to get started with Blazor. Blazor is an experimental .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly. Blazor enables full stack web development with the stability, consistency, and productivity of .NET. While this release is alpha quality and should not be used in production, the code for this release was written from the ground up with an eye towards building a production quality web UI framework.

Dockerize an ASP.NET MVC 5 Angular application with Docker for Windows

Posted by Anuraj on Wednesday, April 4, 2018 Reading time :3 minutes

ASP.NET Docker Angular4

Few days back I wrote a post about working with Angular 4 in ASP.NET MVC. I received multiple queries on deployment aspects - how to setup the development environment or how to deploy it in IIS, or in Azure etc. In this post I am explaining how to deploy a ASP.NET MVC - Angular application to Docker environment.
Translate
Subscribe
BMC logoBuy me a coffee


Copyright © 2018 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub