We got a new code base that uses environment variables everywhere. They point to things like the root of a project, assets, various tools, etc. Not the most ideal situation, but it works. However, when it comes time to try and run our automatic build, it becomes a huge pain.
Windows seems to be an instance of environment variables when creating the process and does not update these values again. We would like our automatic assembly system to go through the list of projects and build them sequentially. To do this, call the project switch, which changes these values. However, when this is done, the changes are not reflected in the current start of the build process.
Does anyone know of any C # / etc commands / functions that can be used to force reload of environment variables after calling the project switch?
source
share