Launch Profiles in .NET

Veera Kondalu
2 min readMay 28, 2021

What is launch profile:

Launch profiles allows you to change the behavior of the application without rebuilding the application. Let’s say if you want to view developer exception page in development, but not in staging and production.

Launch profile contains “Profile Name”, “Launch Application name”, “Application arguments”, “working directory”, “Launch browser” and “Environment Variables”.

Launch profile can be found “Properties” folder in project.

There are two ways to add/edit launch profiles. One way is open “launchSettings.json” and edit settings.

launchSettings.json
launchSettings.json file

In above image you can see there are two profiles under “profiles” section. one is “IIS Express” and other is “LaunchProfileDemo

Second way is select the project and select “Properties” option.

Below image shows the visual representation of Launch profile.

To add new profile or delete existing profile, you can use the buttons “New”, “Delete”

Launch profiles are useful in development, it helps you add “environment variables”, “application arguments”

--

--

Veera Kondalu
0 Followers

Passionate about learning new technology