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");
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"]);
158
builder.UseSolutionRelativeContentRoot("src", applicationBasePath:
_tempDirectory
));
161
Assert.Contains(
_tempDirectory
, exception.Message);
167
var subDirectory = Path.Combine(
_tempDirectory
, "sub", "folder");
170
var solutionFile = Path.Combine(
_tempDirectory
, "TestApp.slnx");
193
if (Directory.Exists(
_tempDirectory
))
195
Directory.Delete(
_tempDirectory
, recursive: true);