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