ASP.NET Core

Application Settings (appsettings.json) in ASP.NET Core

appsettings.json is one of the several ways, in which we can provide the configuration values to ASP.NET core application. You will find this file in the root folder of our project. We can also create environment-specific files like appsettings.development.json, appsettngs.production.json, etc. The ASP.NET Core configuration system loads the appsettings.json and also the environment-specific file based on the current environment.

Application Settings (appsettings.json) in ASP.NET Core Read More »

ASPNETCORE_ENVIRONMENT Variable in ASP.NET Core

ASPNETCORE_ENVIRONMENT is an environment variable, which ASP.NET Core uses to identify the runtime environment. ASP.NET Core configuration system uses it to load different configurations for different stages of application like Development, Staging & Production, etc. In this tutorial, we will show what is ASPNETCORE_ENVIRONMENT and how to set its value while developing the application and while hosting the application, etc

ASPNETCORE_ENVIRONMENT Variable in ASP.NET Core Read More »

ASP.Net Core Startup Class

In this article, we will find the role of the startup class in ASP.NET Core. We learned how the Program class is responsible for creating a Web Host and configuring it. But, before building and running the host, the program class checks for startup class for further configuration. It invokes the Configure & ConfigureServices the method from the class. This allows us to further configure the App startup.

ASP.Net Core Startup Class Read More »

Scroll to Top