Category Archives

14 Articles

Dot net standard demystified: What, why and how?

Portable class Libraries and the Problem

In the beginning building applications for .Net was simple, developer had only one framework to target while building the application. This changed when Silverlight came. developers wanted to share libraries for Silverlight and .Net framework. Which caused the origin or Profiles.


Profiles are a set of reference libraries, that have references to the libraries available in different platforms. In order to make sure any specific code can be portable, you can compile your code against to specific Profile.

  • Profile 14
  • .Net framework 4.0
  • Silverlight 5.0
  • Profile 37
  • Profile 14 (.Net framework 4.0 & Silverlight 5.0)
  • .Net framework 4.5

Read More

ASP.Net Core MVC request life cycle – Overview

ASP.Net Core MVC request life cycle – Overview

Overview of Platform changes
In the past version of ASP.Net, Web forms and MVC used to share the underlying infrastructure. In .Net core these platforms are unified into one MVC. The Webforms is not part of ASP.NET core anymore.

The prior versions of ASP.NET MVC used to provide an underlying application life cycle events based on HTTP modules & handlers and IIS hosting and application level events . Http Events and Handlers are not existing in ASP.NET Core.

Most of the events and functionality are provided in ASP.Net core by middleware.

What is life cycle
A Series of components, events or stages of an application that processes a request or respond to user interaction. In MVC the request life cycle refers to all of the components and stages that interact to process an HTTP request.

Following diagram shows an overview of ASP.Net core MVC application.

Asp.Net Core MVC Life cycle overview

Read More

The type or namespace name system could not be found Error in C#

How to resolve “The type or namespace name system could not be found” and “Predefined type system object is not defined or imported” errors in a .Net project c#?

Install the latest version of System.Runtime Nuget package or add a reference to System.Runtime from “Add references”.

Clean and rebuild the project once Reference is added.

PM> Install-Package System.Runtime

Read More

Installing Net core in Ubuntu 16.04 LTS

.NET Core is a cross-platform, open-source, and modular .NET platform for creating modern web apps, microservices, libraries and console applications.

As of 4/23/2017, the latest version of dotnet core for Linux is version 1.0.1.

Run following commands in a shell to install dotnet core in Linux 16.04 LTS.

ssudo sh -c 'echo "deb [arch=amd64] xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

Read More