Project Codify

A blog about ASP.Net, ASP.Net Core, C#, Angular, React and related stuff.

Hosting ASP.NET Core on Linux using Nginx

ASP.NET Core is a fully open source, high-performance, and cross-platform framework. ASP.NET Core runs anywhere you need it to (Windows, Mac, Linux). In this post, we will see how to host ASP.NET core application on Linux(CentOS 7) with Nginx as the reverse proxy.

Angular: Set Base URL Dynamically

Recently one of my Angular projects had a requirement to have multiple instances of websites hosted on the same domain with different base URLs. In this post, I will talk about how to make these changes in Angular.

C# 7.1 New Features

With Visual Studio 2017.3, came the first "point" release or minor update to C#, 7.1. This release adds three new features on top of C#7.0: async main method, default literal expressions and inferred tuple element names. In this post, I will cover how to enable C# 7.1 and the new features which came with it.

How to Send Email in ASP.Net Core 2.0

With the release of .Net Core 2.0, SmtpClient is now available. It is identical to what was there in full .Net framework. Ideally, the code to send email using SmtpClient you might have written in .Net framework should work in .Net Core 2.0 pretty much by copy-pasting.

Top new features of C# 7.0

Have you been using C# for years? If you haven't looked at C# 7 new features yet, its time to learn some cool new features. Let's discuss few top new features of C# 7 like out variables, Pattern Matching, Tuples, and Discards.

Using AutoMapper in ASP.Net Core

AutoMapper is a convention based object-object mapper. It maps two different entities by transforming an input object of one type to an output object of another type. In this post, we will setup Automapper in ASP.Net core project.

How to make String.Contains case insensitive?

The string.Contains method returns a value indicating whether a specified string occurs within this string, but it is case sensitive. And there is no StringComparison version of string.Contains method available to use for case insensitive. E.g. Running following lines of code&nbs