File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ public void UnusedEnvironmentVariablesDoNotAppearInBinaryLog()
144144 {
145145 using ( TestEnvironment env = TestEnvironment . Create ( ) )
146146 {
147+ env . SetEnvironmentVariable ( "MSBUILDONLYLOGUSEDENVIRONMENTVARIABLES" , "1" ) ;
147148 env . SetEnvironmentVariable ( "EnvVar1" , "itsValue" ) ;
148149 env . SetEnvironmentVariable ( "EnvVar2" , "value2" ) ;
149150 env . SetEnvironmentVariable ( "EnvVar3" , "value3" ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public Traits()
9494 /// <summary>
9595 /// Log all environment variables whether or not they are used in a build in the binary log.
9696 /// </summary>
97- public readonly bool LogAllEnvironmentVariables = ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "MSBUILDLOGALLENVIRONMENTVARIABLES " ) )
97+ public bool LogAllEnvironmentVariables => string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "MSBUILDONLYLOGUSEDENVIRONMENTVARIABLES " ) )
9898#if ! TASKHOST
9999 & & ChangeWaves . AreFeaturesEnabled ( ChangeWaves . Wave17_4 )
100100#endif
You can’t perform that action at this time.
0 commit comments