Working with CSS Sprites

Posted by Anuraj on Sunday, March 6, 2016

.Net C# Web Optimization

CSS Sprites is a technique of combining multiple images into a single image file for use on a website, to help with performance. Using image sprites will reduce the number of server requests and save bandwidth. Here is the network requests for social icons for my blog. Since I was using 5 icons, browser was sending 5 browsers requests.

Entity Framework 7 Code First Migrations

Posted by Anuraj on Saturday, February 20, 2016

ASP.NET5 ASP.NET Core EF7 Entity Framework Code First Migration CodeProject

This post is about Entity Framework 7 Code First Migrations. Code First Migrations is a Entity Framework feature which helps to apply database schema changes without re-creating the whole database. In ASP.NET 5, Microsoft released EF 7, which helps to run migrations with dnx command.

How to setup Https on Kestrel

Posted by Anuraj on Friday, February 12, 2016

ASP.NET5 ASP.NET Core HTTPS Kestrel

This post is about setup Https on Kestrel. Kestrel is a cross-platform web server based on libuv, a cross-platform asynchronous I/O library. Kestrel is open-source, and you can view the Kestrel source on GitHub. Kestrel is a great option to at least include support for in your ASP.NET 5 projects so that your project can be easily run by developers on any of the supported platforms.

Measuring code coverage of ASP.NET Core applications using Opencover

Posted by Anuraj on Friday, February 12, 2016

ASP.NET5 MVC ASP.NET Core Code Coverage Unit Testing

This post is about getting code coverage of ASP.NET Core using Opencover. In computer science, code coverage is a measure used to describe the degree to which the source code of a program is tested by a particular test suite. A program with high code coverage has been more thoroughly tested and has a lower chance of containing software bugs than a program with low code coverage. Opencover is a code coverage tool for .NET 2 and above, support for 32 and 64 processes with both branch and sequence points; roots proudly based in PartCover - https://github.com/OpenCover/opencover/

Using Glimpse in ASP.NET Core

Posted by Anuraj on Saturday, January 30, 2016

ASP.NET5 MVC ASP.NET Core

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 http://responsivevoice.org/. The API is free for non-Commercial use. First you need to create the add in using Visual Studio.
MVP
Subscribe


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