1 write to _env
Microsoft.Build.Engine.UnitTests (1)
ProjectCache\ProjectCacheTests.cs (1)
34_env = TestEnvironment.Create(output);
41 references to _env
Microsoft.Build.Engine.UnitTests (41)
ProjectCache\ProjectCacheTests.cs (41)
37_env.WithInvariant(new CustomConditionInvariant(() => BuildManager.ProjectCacheDescriptors.IsEmpty)); 42_env.Dispose(); 457var graph = testData.CreateGraph(_env); 468using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 483var graph = testData.CreateGraph(_env); 496using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 571graph = testData.CreateGraph(_env); 578using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 682var graph = testData.CreateGraph(_env); 692using (var buildSession = new Helpers.BuildManagerSession(_env)) 740var graph = testData.CreateGraph(_env); 751_env.SetEnvironmentVariable("MSBUILDNOINPROCNODE", "1"); 760using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 873var project1 = _env.CreateFile("1.proj", @" 880_env.CreateFile("2.proj", @" 891using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 915var graph = testData.CreateGraph(_env); 924using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 946var graph = testData.CreateGraph(_env); 950using (var buildSession = new Helpers.BuildManagerSession(_env)) 991var graph = testData.CreateGraph(_env); 1001using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 1022_env, 1041using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 1054_env, 1073using (var buildSession = new Helpers.BuildManagerSession(_env)) 1110var project = _env.CreateFile("1.proj", @$" 1123_env, 1230_env, 1246_env, 1327var project = _env.CreateFile( 1346using var buildSession = new Helpers.BuildManagerSession(_env, buildParameters); 1368var graph = testData.CreateGraph(_env); 1402using var buildSession = new Helpers.BuildManagerSession(_env, buildParameters); 1461var graph = testData.CreateGraph(_env); 1476using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 1524var graph = testData.CreateGraph(_env); 1537using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 1580.Select(i => _env.CreateFile($"project{i}.proj", project).Path) 1613using (var buildSession = new Helpers.BuildManagerSession(_env, buildParameters)) 1654_env.SetEnvironmentVariable(exceptionLocation, errorKind.ToString());