1 write to _tempDirectory
Microsoft.AspNetCore.TestHost.Tests (1)
UseSolutionRelativeContentRootTests.cs (1)
18_tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")[..8]);
18 references to _tempDirectory
Microsoft.AspNetCore.TestHost.Tests (18)
UseSolutionRelativeContentRootTests.cs (18)
19_contentDirectory = Path.Combine(_tempDirectory, "src"); 26var solutionFile = Path.Combine(_tempDirectory, "TestApp.sln"); 33builder.UseSolutionRelativeContentRoot("src", applicationBasePath: _tempDirectory); 44var solutionFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 58builder.UseSolutionRelativeContentRoot("src", applicationBasePath: _tempDirectory); 69var subDirectory = Path.Combine(_tempDirectory, "sub"); 73var slnxFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 87builder.UseSolutionRelativeContentRoot("src", _tempDirectory, "*.slnx"); 101var slnFile = Path.Combine(_tempDirectory, "TestApp.sln"); 127var slnFile = Path.Combine(_tempDirectory, "TestApp.sln"); 128var slnxFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 142builder.UseSolutionRelativeContentRoot("src", applicationBasePath: _tempDirectory, solutionNames: ["*.sln", "*.slnx"]); 158builder.UseSolutionRelativeContentRoot("src", applicationBasePath: _tempDirectory)); 161Assert.Contains(_tempDirectory, exception.Message); 167var subDirectory = Path.Combine(_tempDirectory, "sub", "folder"); 170var solutionFile = Path.Combine(_tempDirectory, "TestApp.slnx"); 193if (Directory.Exists(_tempDirectory)) 195Directory.Delete(_tempDirectory, recursive: true);