1 write to _env
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
30_env = TestEnvironment.Create(output);
53 references to _env
Microsoft.Build.BuildCheck.UnitTests (53)
EndToEndTests.cs (53)
33_env.WithEnvironmentInvariant(); 40public void Dispose() => _env.Dispose(); 54_env.Output.WriteLine(output); 55_env.Output.WriteLine("========================="); 161TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 170_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 173_env.Output.WriteLine(output); 174_env.Output.WriteLine("========================="); 234_env.Output.WriteLine(output); 235_env.Output.WriteLine("========================="); 271TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 275_env.SetCurrentDirectory(Path.Combine(workFolder.Path, entryProjectName)); 335_env.SetEnvironmentVariable("MSBUILDDONOTLIMITBUILDCHECKRESULTSNUMBER", "0"); 339_env.SetEnvironmentVariable("MSBUILDDONOTLIMITBUILDCHECKRESULTSNUMBER", "1"); 343_env.Output.WriteLine(output); 344_env.Output.WriteLine("========================="); 372TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 378_env.SetCurrentDirectory(workFolder.Path); 381_env.Output.WriteLine(output); 382_env.Output.WriteLine("========================="); 417_env.Output.WriteLine(output); 418_env.Output.WriteLine("========================="); 426_env.Output.WriteLine(output); 427_env.Output.WriteLine("========================="); 445_env.Output.WriteLine(output); 446_env.Output.WriteLine("========================="); 455_env.Output.WriteLine(output); 456_env.Output.WriteLine("========================="); 474(checkRequested ? " -check" : string.Empty), out bool success, false, _env.Output, timeoutMilliseconds: 120_000); 475_env.Output.WriteLine(output); 509string logFile = _env.ExpectFile(".binlog").Path; 513out bool success, false, _env.Output, timeoutMilliseconds: 120_000); 522out success, false, _env.Output, timeoutMilliseconds: 120_000); 524_env.Output.WriteLine(output); 564out bool success, false, _env.Output, timeoutMilliseconds: 120_000); 623string logFile = _env.ExpectFile(".binlog").Path; 627out bool success, false, _env.Output, timeoutMilliseconds: 120_000); 633out success, false, _env.Output, timeoutMilliseconds: 120_000); 635_env.Output.WriteLine(output); 677$"{Path.GetFileName(projectFile.Path)} /m:1 -nr:False -restore -check", out bool success, false, _env.Output); 713$"{Path.GetFileName(projectFile.Path)} /m:1 -nr:False -restore -check", out bool success, false, _env.Output); 739false, _env.Output); 873TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 950TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 951TransientTestFile testFile = _env.CreateFile(workFolder, "somefile"); 954projectFile = _env.CreateFile(workFolder, entryProjectAssetName, contents); 959TransientTestFile supplementalFile = _env.CreateFile(workFolder, supplementalAssetName, supplementalContent); 962editorconfigFile = _env.CreateFile(workFolder, ".editorconfig", ReadEditorConfig(ruleToSeverity, ruleToCustomConfig, testAssetsFolderName)); 967_env.SetCurrentDirectory(Path.GetDirectoryName(projectFile.Path)); 969_env.SetEnvironmentVariable("MSBUILDNOINPROCNODE", buildInOutOfProcessNode ? "1" : "0"); 972_env.SetEnvironmentVariable("TestFromTarget", "FromTarget"); 973_env.SetEnvironmentVariable("TestFromEvaluation", "FromEvaluation"); 974_env.SetEnvironmentVariable("TestImported", "FromEnv");