Using Glimpse in ASP.NET Core

Posted by Anuraj on Saturday, January 30, 2016


This post is about integrating Glimpse in ASP.NET Core application. Glimpse is a web debugging and diagnostics tool used to gain a better understanding of whats happening inside of your ASP.NET application. First you need to add reference of Glimpse in the project.json file.

Generating dynamic XML Sitemaps in ASP.NET 5

Posted by Anuraj on Wednesday, December 30, 2015

ASP.NET5 MVC XML Sitemap Middleware

This post is about creating a XML Sitemap middleware in ASP.NET 5 MVC 6. Sitemaps provide a way of informing search engines about pages in your site. For small websites you could probably generate an XML sitemap file manually. For large sites with dynamic content, a programmatic approach is required. Recently there was some discussion on ASP.NET forum regarding how to create a dynamic sitemap based on the ontrollers and action methods. In this post I am building a middleware, which intercepts request for sitemap.xml file (which doesn’t exists) and returns xml based on contoller classes and action methods. Since it is difficult to get application url in ASP.NET5, it is provided as a configuraion parameter.

Build your first Office 365 addin using HTML and Javascript

Posted by Anuraj on Saturday, December 12, 2015

Office365 Javascript Outlook Addin

This post is about building office 365 addin using HTML and Javascript technologies. You don’t require Visual Studio, but it is recommended. VS 2015 has a project type Apps for Office. In this post I am creating an outlook addin add-in that provides audio transcription of the mail content. For converting text to speech I am using a Javascript API from The API is free for non-Commercial use. First you need to create the add in using Visual Studio.

Angular JS CRUD operations with ASP.NET5 - Part 5

Posted by Anuraj on Saturday, December 5, 2015

Jasmine Blanket.js Javascript Code Coverage

This post is about enabling javascript code coverage through Blanket.js. First you need to install the blanket.js via bower. So here is my updated bower.json.

Running Jasmine Tests with phantomjs

Posted by Anuraj on Tuesday, December 1, 2015

Jasmine PhantomJS

Last post is about writing javascript unit tests. This post is about integrating Jasmine tests in Continuous Integration. For integrating in CI, you need an application - PhantomJS. PhantomJS is a headless WebKit scriptable with a JavaScript API. You can download PhantomJS from the PhantomJS download page.. To run Jasmine test cases you also require run-jasmine.js.

Dynamically load ASP.NET5 View Components using Jquery

Posted by Anuraj on Tuesday, December 1, 2015


Long back I wrote a post about loading partial views using JQuery. This post is about loading View Components in ASP.NET5 with the help of JQuery. Similar to previous versions of MVC, this version also supports returning View component from Action Result. So here is the controller code.

Angular JS CRUD operations with ASP.NET5 - Part 4

Posted by Anuraj on Monday, November 30, 2015

Angular JS ASP.NET5 Unit Testing Code coverage Javascript

This post is about Angular JS unit testing. This post is using Jasmine; Jasmine is a behavior-driven development framework for testing JavaScript code. For testability I have modified the controller code little bit. Here is the controller.

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