4 overrides of Path
Aspire.Hosting (1)
Utils\FileSystemService.cs (1)
184
public override string
Path
=> _path;
Aspire.Hosting.Blazor.Tests (1)
tests\Shared\TestFileSystemService.cs (1)
60
public override string
Path
=> path;
Aspire.Hosting.Tests (2)
Dcp\KubernetesServiceTests.cs (1)
2526
public override string
Path
=> path;
tests\Shared\TestFileSystemService.cs (1)
60
public override string
Path
=> path;
68 references to Path
Aspire.Hosting (7)
ApplicationModel\DotnetProgramPublishing.cs (4)
210
var runtimeOutputPath = stagedArchiveDirectory?.
Path
?? buildResult.OutputPath;
241
stagedArchiveDirectory.
Path
,
244
var normalizedArchivePath = Path.Combine(stagedArchiveDirectory.
Path
, "normalized.tar");
296
logger.LogWarning(ex, "Failed to delete temporary container archive directory {ArchiveDirectory}", stagedArchiveDirectory.
Path
);
Dcp\Locations.cs (2)
36
fileSystemService.UntrackItem(_dcpSessionDir.
Path
);
56
return _dcpSessionDir.
Path
;
Pipelines\PipelineOutputService.cs (1)
40
_tempDirectory = directoryService.TempDirectory.CreateTempSubdirectory("aspire-pipelines").
Path
;
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (1)
142
var tempDirectory = fileSystemService.TempDirectory.CreateTempSubdirectory("aspire-bicep").
Path
;
Provisioning\Provisioners\BicepProvisioner.cs (1)
544
var tempDirectory = fileSystemService.TempDirectory.CreateTempSubdirectory("aspire-bicep").
Path
;
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
286
var kubeConfigPath = Path.Combine(kubeConfigDir.
Path
, "kubeconfig");
Aspire.Hosting.Blazor.Tests (17)
AddBlazorGatewayTests.cs (12)
169
var clientDirectory = Path.Combine(directory.
Path
, "Client");
173
File.Copy(Path.Combine(clientDirectory, "global.json"), Path.Combine(directory.
Path
, "global.json"));
176
await File.WriteAllTextAsync(Path.Combine(directory.
Path
, "PrefixEndpoints.cs"),
189
await File.WriteAllTextAsync(Path.Combine(directory.
Path
, "Dockerfile"), dockerfile);
192
builder.AddDockerfile("client-publish", directory.
Path
);
208
var clientDirectory = Path.Combine(directory.
Path
, "Client");
210
await File.WriteAllTextAsync(Path.Combine(directory.
Path
, "Test.slnx"), "<Solution />");
212
options => options.ProjectDirectory = directory.
Path
, testOutputHelper, "AppHost:Operation=publish");
229
var gatewayDirectory = Directory.CreateDirectory(Path.Combine(directory.
Path
, "Gateway")).FullName;
240
var prefixScriptPath = Path.Combine(directory.
Path
, ".aspire", "scripts", "PrefixEndpoints.cs");
383
var projectPath = Path.Combine(directory.
Path
, "Client.csproj");
412
var projectPath = Path.Combine(directory.
Path
, "Client.csproj");
BlazorHostedExtensionsTests.cs (5)
244
var serverProjectPath = Path.Combine(tempDirectory.
Path
, "Server.csproj");
321
var serverProjectPath = Path.Combine(tempDirectory.
Path
, "Server.csproj");
637
var serverDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.
Path
, "Server"));
638
var clientDirectory = Directory.CreateDirectory(Path.Combine(tempDirectory.
Path
, "Client"));
661
var serverProjectPath = Path.Combine(tempDirectory.
Path
, "Server.csproj");
Aspire.Hosting.Browsers (1)
BrowserLogsUserDataDirectory.cs (1)
29
new(temporaryDirectory.
Path
, profileDirectoryName: null, temporaryDirectory);
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsUserDataDirectory.cs (1)
29
new(temporaryDirectory.
Path
, profileDirectoryName: null, temporaryDirectory);
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
32
builder.Services.Configure<PipelineOptions>(options => options.OutputPath = workspace.
Path
);
Aspire.Hosting.Maui (2)
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
77
var environmentTargetsDirectory = fileSystemService.TempDirectory.CreateTempSubdirectory("aspire-maui-android-env").
Path
;
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
77
var environmentTargetsDirectory = fileSystemService.TempDirectory.CreateTempSubdirectory("aspire-maui-mlaunch-env").
Path
;
Aspire.Hosting.Tests (36)
Dashboard\DashboardServiceTests.cs (4)
1611
producerUdsPath: Path.Combine(directory.
Path
, "producer.sock"),
1612
consumerUdsPath: Path.Combine(directory.
Path
, "consumer.sock"),
1613
controlUdsPath: Path.Combine(directory.
Path
, "control.sock"),
1614
metadataPath: Path.Combine(directory.
Path
, "metadata.json"));
Dcp\DcpExecutorTests.cs (5)
6714
[AspireStore.AspireStorePathKeyName] = aspireStoreDirectory.
Path
,
6730
var expectedCertificatesRoot = Path.Join(aspireStoreDirectory.
Path
, ".aspire", "dcp", "executables", "TestExecutable-12345678", "certificates");
6765
[AspireStore.AspireStorePathKeyName] = aspireStoreDirectory.
Path
,
6778
var certificatesRoot = Path.Join(aspireStoreDirectory.
Path
, ".aspire", "dcp", "executables", "TestExecutable-12345678", "certificates");
12120
aspireStoreDirectory = fileSystemService.TempDirectory.CreateTempSubdirectory("aspire-store").
Path
;
FileSystemServiceTests.cs (18)
51
Assert.NotNull(tempDir.
Path
);
52
Assert.True(Directory.Exists(tempDir.
Path
));
62
Assert.NotNull(tempDir.
Path
);
63
Assert.True(Directory.Exists(tempDir.
Path
));
64
Assert.Contains("test-prefix", tempDir.
Path
);
72
var path = tempDir.
Path
;
146
extractedPath = tempDir.
Path
;
198
Assert.NotEqual(tempDir1.
Path
, tempDir2.
Path
);
199
Assert.True(Directory.Exists(tempDir1.
Path
));
200
Assert.True(Directory.Exists(tempDir2.
Path
));
240
var dirPath = tempDir.
Path
;
260
var dirPath = tempDir.
Path
;
284
var dirPath = tempDir.
Path
;
329
var dir1Path = tempDir1.
Path
;
330
var dir2Path = tempDir2.
Path
;
370
var dirPath = tempDir.
Path
;
439
Assert.True(Directory.Exists(tempDir.
Path
));
Pipelines\PipelineOutputComparisonTests.cs (6)
21
var root = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
59
var root = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
87
var root = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
112
var parent = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
140
var root = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
162
var parent = _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
Pipelines\PipelineOutputSnapshotterTests.cs (1)
679
private string CreateDirectory() => _fileSystem.TempDirectory.CreateTempSubdirectory().
Path
;
Terminals\Hex1bAspireTerminalTests.cs (2)
244
await File.WriteAllTextAsync(Path.Combine(directory.
Path
, "working-directory-marker"), string.Empty);
268
WorkingDirectory = directory.
Path