Create a build pipeline for Angular and ASP.NET Core apps with Visual Studio Team Services

Posted by Anuraj on Sunday, August 5, 2018 Reading time :2 minutes

ASP.NET Core Angular

This post is about creating a build pipeline for your Angular and ASP.NET Core apps with Visual Studio Team Services. If you don’t have a VSTS account, you need to create a VSTS account, then a project, you can use default values. In this post I am using GitHub as my source control. And I am using VSTS only for creating a build. Once you create a project, click on Build and Release menu. And click on the New definition button.

Anti-forgery validation with asp dotnet core and angular

Posted by Anuraj on Saturday, August 4, 2018 Reading time :1 minute

ASP.NET Core Angular

This post is about enabling Anti-forgery validation in single page applications using ASP.NET Core and Angular. The anti-forgery token can be used to help protect your application against cross-site request forgery. In earlier versions of ASP.NET, you had to explicitly decorate a controller or an action method to enable Anti-forgery, in ASP.NET Core Web API all the unsafe methods(PUT, POST) anti-forgery validation is enabled by default.

.NET Core code coverage with Jetbrains dotCover

Posted by Anuraj on Friday, August 3, 2018 Reading time :1 minute

CodeCoverage .NETCore dotCover

This post is about how to measure .net core code coverage with Jetbrains dotCover. dotCover is a .NET Unit Test Runner and Code Coverage Tool.

Perform CRUD operations using OData in ASP.NET Core

Posted by Anuraj on Saturday, July 21, 2018 Reading time :3 minutes

ASP.NET Core OData

This post is about how to perform CRUD operations with OData in ASP.NET Core. On July 2018, Microsoft OData Team is announced general availability (GA) of OData (Open OData Protocol) on ASP.NET Core 2.0.

Building ASP.NET Core apps with Xamarin Forms and Ooui

Posted by Anuraj on Monday, July 16, 2018 Reading time :2 minutes

ASP.NET Core Ooui Xamarin Forms

This post about developing ASP.NET Core apps with Xamarin Forms and Ooui. Xamarin.Forms exposes a complete cross-platform UI toolkit for .NET developers. Build fully native Android, iOS, and Universal Windows Platform apps using C# in Visual Studio. And Ooui is a small cross-platform UI library that brings the simplicity of native UI development to the web. In the background, it is also using WebAssembly, like Blazor. Here is a simple console app, which is running a Xamarin Forms code in self hosted mode.

Running console applications in Windows containers

Posted by Anuraj on Tuesday, July 10, 2018 Reading time :2 minutes

Docker Hangfire

Hangfire is framework which helps to perform background operations in .NET and .NET Core. By default, Hangfire will be configured along with the application, but you need to configure the Web App to run Always running. For better scalability and separation of concerns, it is recommended to move the job processing from web application to a different process. Hangfire supports two modes, one as a Console application and as Windows Service. In this blog post I am using Console app approach.

Generate code quality report using VSTS task

Posted by Anuraj on Wednesday, July 4, 2018 Reading time :1 minute

VSTS PowerShell

While implementing CI for one of the project, I implemented code quality check using Resharper Code Quality Analysis task. This task can fail the build, but this task will not generate a report. Since this task is internally using Inspectcode.exe, it will be able to generate the output XML file. In this post, I am writing a simple PowerShell script, which can be used as task, which will generate html report.
BMC logoBuy me a coffee

Copyright © 2020 - 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