Debug.Assert in C# is your friend

For all those important methods of your application where you would like to / have check an input parameter or output result for null / empty check. In case you don't want those checks while you release and only want them to be break into debug or pause while debugging - Debug.…

webpages:Version AppSetting in MVC

Another application configuration setting you will observe in web.config of your ASP.NET MVC application is webpages:Version The value for this setting currently is showing 3.0.0.0. This indicates the version of Webpages - Razor view engine is to be used. This application setting was introduced…

webpages:Enabled AppSetting in MVC

If you open your web.config at root of your MVC project you will find bunch of default appsetting keys added by MVC or WebAPI. One of the appsetting with key webpapges:Enabled is added which as default value as false. So what is the deal with this appsetting? To…

Tale of two web.config in MVC

When creating a MVC project using Visual Studio you will observe that creation process will add two web.config files to your project. 1. In root of the project folder. 2. In the root of the Views folder in the project folder. Question: The web.config in the root of…

Base nuget packages for MVC and WebAPI

Started to learn MVC and WebAPI from scratch, have been working with non-web stuffs (mostly protocols and win-service) for a very long time and just want to get my head around with the Modern Microsoft way to do web stuffs using ASP.NET MVC and / or WebAPI. So I decided…