© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
Brady Kelly

❔ Can't change environment variables in Rider

When I click on Edit Configurations and select a configuration to edit, the environment variables are read only. This config is based on a 'launchSettings.json' so there is a notice in the config editor that "profile parameters are set by launchSettings", and some fields are greyed out because of that, but not Environment variables. That field appears to be editable but is not.

Looking around I found one StackOverflow accepted answer that says one should edit the environment variables in launchSettings.json, but in my run/debug config, there is one variable that isn't in launchSettings.json. Note in the images that 'ASPNETCORE_URLS' is not present in launchSettings.

I am trying to get rid of that variable because I suspect it is causing an exception to be thrown when I try and debug the app. It doesn't throw an exception in VS and the only difference I can see is that the VS launch profile doesn't have the ASPNETCORE_URLS variable.
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Environment variables in tests
C#CC# / help
3y ago
Get Environment Variables...
C#CC# / help
4y ago
Environment Variables/Persistent Values in OpenSilver
C#CC# / help
3y ago
Can't declare variables not in main?
C#CC# / help
2y ago