© 2026 Hedgehog Software, LLC

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

✅ Read `launchsettings.json` environment variable from a terminal script in Rider

It looks like the only way to get Rider to reload real environment variable values is to restart the IDE. This is a pain when I'm debugging or experimenting with values that change often, so I figure a way around this is to update the 'fake' environment variable in
launchsettings.json
launchsettings.json
, then run a script in the IDE terminal to read that value and set the real environment variable in the OS (Windows for now). That way I know my app is getting an up to date value from the OS variable.

I'm just stuck on how to read the
launchSetting.json
launchSetting.json
variable from a terminal script (PowerShell).
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

Read and Set a variable from another script in unity
C#CC# / help
4y ago
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
C#CC# / help
16mo ago
✅ launchSettings.json being ignored completely
C#CC# / help
3y ago
Debugger in rider showing variable name not in current cs script
C#CC# / help
13mo ago