documentation/wiki/MSBuild-Environment-Variables.md
This document describes the environment variables that are respected in MSBuild, its purpose and usage.
Some of the env variables listed here are unsupported, meaning there is no guarantee that variable or a specific combination of multiple variables will be respected in upcoming release, so please use at your own risk.
MSBuildDebugEngine=1 & MSBUILDDEBUGPATH=<DIRECTORY>
<DIRECTORY>. Useful when debugging build or evaluation issues when you can't directly influence the MSBuild invocation, such as in Visual Studio. More details on capturing binary logsMSBUILDTARGETOUTPUTLOGGING=1
MSBUILDLOGTASKINPUTS=1
MSBUILDEMITSOLUTION=1
MSBUILDENABLEALLPROPERTYFUNCTIONS=1
MSBUILDLOGVERBOSERARSEARCHRESULTS=1
MSBUILDLOGCODETASKFACTORYOUTPUT=1
<GUID>.txt file in the TEMP directoryMSBUILDDISABLENODEREUSE=1
/nr:false, but the environment variable is useful to also set this for Visual Studio for example).MSBUILDLOGASYNC=1
MSBUILDDEBUGONSTART=1
MSBUILDDEBUGSCHEDULER=1 & MSBUILDDEBUGPATH=<DIRECTORY>
MsBuildSkipEagerWildCardEvaluationRegexes
MSBUILDFORCEALLTASKSOUTOFPROCESS
MSBUILDFORCEINLINETASKFACTORIESOUTOFPROC
MSBUILD_CONSOLE_USE_DEFAULT_ENCODING