Create a build pipeline for Angular and ASP.NET Core apps with Visual Studio Team Services
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...
Anti-forgery validation with asp dotnet core and 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,...
.NET Core code coverage with Jetbrains 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. First you need to install the dotCover.CommandLineTools package from nuget. Instead of referencing it in the project file, you need to modify the project file...
Perform CRUD operations using OData in ASP.NET Core
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. First you need to add the reference of Microsoft.AspNetCore.OData package. Next you need to add the...
Building ASP.NET Core apps with Xamarin Forms and Ooui
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...
Running console applications in Windows containers
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...
Generate code quality report using VSTS task
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....
Deploying an ASP.NET Core 2.1 Application with AWS Elastic Beanstalk
AWS Elastic Beanstalk is an orchestration service offered from Amazon Web Services for deploying infrastructure which orchestrates various AWS services, including EC2, S3, Simple Notification Service (SNS), CloudWatch, auto scaling, and Elastic Load Balancers. Currently AWS Elastic Beanstalk only supports .NET Core 2.0. First I created a ASP.NET MVC app,...