How can I get Visual Studio to learn new environment variables without rebooting my system

I saw messages on how to update environment variables without closing VStudio, but for me I just want to know how I can make changes without rebooting my system. I really do not understand how he cannot detect new changes - I was completely convinced that the process does not hang around and even used vcvars32.bat to pick up new changes before re-opening. I can not find a solution. My environment variables can be used from other sources (i.e.% Variablename% works in cmd.exe). Any ideas?

+4
source share
2 answers

The environment used is one of the Windows Explorer. You will need to restart the explorer for the changes to display.

There is a way to apply the changes to the current environment. You might want to try SuperUser.com

+6
source

Since the new environment variable is visible in the cmd window, why not run VS from there? The devenv command devenv launch the VS IDE. You can say to download a specific solution or project.

 devenv [solutionfile | projectfile | anyfile.ext] [switches] 

The VS IDE will display the state of the environment variable in effect in this cmd window. However, note that some environment variables will not be selected unless you use the /useenv :

  • /useenv : Use the PATH, INCLUDE, LIBPATH, and LIB environment variables instead of the IDE paths for building VC ++.

Also note that it also accepts many options (mainly for creating projects from the command line); use devenv /? to get detailed information.

+2
source

All Articles