Introduction: In dotnet core 2.2 or above, transformations of the web.config can be done with the following ways: 1. Build Configuration 2. Profile 3. Environment 4. Custom Any of the processes can be utilized in your project deployment pipeline. "In Dotnet core 2.2 and above transformation works directly with the core platform. In Dotnet core 2.1 or below transformation won't work directly for that please go through this link here. " Build Configuration: To create a Dotnet core MVC project, click here for Dotnet core Mvc get started . Now by default web.config file will not be created. Now add the web.config file to the project and change the file as below. <configuration> <system .webserver=""> <handlers> <remove name="aspNetCore"> <add modules="AspNetCoreModule" name="aspNetCore" path="*" resourcetype="Unspecified" verb="*"> <