---
title: "Ujjwal Singh (@Ujjwal087) | Hashnode"
description: "Crafting clean code and clear thoughts—one blog at a time 🛠️💡. Read the latest articles by Ujjwal Singh on Hashnode."
url: "https://hashnode.com/@Ujjwal087"
---

@Ujjwal087

# Ujjwal Singh

@Ujjwal087 · India · Joined August 2024

Crafting clean code and clear thoughts—one blog at a time 🛠️💡

## Comments

[Helpful!!](https://hashnode.com/posts/18-essential-developer-tools-that-will-improve-the-way-you-work/66d0757e07a9c882229b8a8b/comment/66d40467234850b93d9b6dc6)

Comment · Article · Sep 1, 2024 · [18 Essential Developer Tools that Will Improve the Way You Work 🚀🔥](https://hashnode.com/posts/18-essential-developer-tools-that-will-improve-the-way-you-work/66d0757e07a9c882229b8a8b)

[Hi Kazys! Good to hear from you. In an ASP.NET Core application, the runtime selects the environment (Development, Staging, Production, etc.) based on the ASPNETCORE\_ENVIRONMENT environment variable. Here's how it works: Environment Variable Setting: Each profile in launchSettings.json sets the ASPNETCORE\_ENVIRONMENT variable (e.g., "Development"). Runtime Selection: When the application starts, the runtime reads ASPNETCORE\_ENVIRONMENT to determine which environment-specific configuration to load, such as appsettings.Development.json. Switching Profiles: Locally: In Visual Studio, switch profiles using the dropdown to set the environment variable. Its located near the start button where you can select IIS Express or your project name. Deployment: On servers or in cloud environments, set the ASPNETCORE\_ENVIRONMENT variable to control the environment. This setup ensures the application loads the correct configuration and services based on the environment it's running in.](https://hashnode.com/posts/understanding-launchsettingsjson-in-aspnet-core-a-comprehensive-guide/66c80e034164fe475e685201/comment/66cef334659ca38d03dff662#reply-66cff9b7ae7f42399de76e32)

Reply · Article · Aug 29, 2024 · [Understanding LaunchSettings.json in ASP.NET Core: A Comprehensive Guide](https://hashnode.com/posts/understanding-launchsettingsjson-in-aspnet-core-a-comprehensive-guide/66c80e034164fe475e685201)
