Unfortunately, you need to restart your process before environment variables can be refreshed. See this MSDN post.
More Related Contents:
- How do I get and set Environment variables in C#?
- How to set ASPNETCORE_ENVIRONMENT to be considered for publishing an ASP.NET Core application
- How to set system environment variable in C#?
- Set environment variables for a process
- How to set a global environment variable in .NET Core (user-wide or system-wide)
- How to enter text into CMD windows? [duplicate]
- Create folder and file on Current user profile, from Admin Profile
- int.Parse, Input string was not in a correct format
- What does $ mean before a string?
- What is the simplest way to get indented XML with line breaks from XmlDocument?
- C# use System.Type as Generic parameter
- How do I hide a process in Task Manager in C#?
- How to detect a USB drive has been plugged in?
- How to pass parameters to another process in c#
- Proper way to dispose a new Form
- How to find reason for Generic GDI+ error when saving an image?
- How can I make my own event in C#?
- Suppress properties with null value on ASP.NET Web API
- Entity Framework Filter “Expression”
- WiX silent install unable to launch built in .EXE: WiX v3
- Code for a simple thread pool in C# [closed]
- Merge multiple Lists into one List with LINQ
- Is it possible to update an existing Windows Phone 8 app to Windows Phone Store 8.1
- C# code for association, aggregation, composition
- How can I pass a lambda expression to a WCF service?
- How to add a watermark to a PDF file?
- Is it possible to run a .NET Core console application silently (hide console window)?
- How to implement and do OCR in a C# project?
- What is the difference between == and Equals() for primitives in C#?
- Moq & Interop Types: works in VS2012, fails in VS2010?