3 writes to OutputPath
Aspire.Hosting (1)
Publishing\ManifestPublisher.cs (1)
42_options.Value.OutputPath = Path.Combine(_options.Value.OutputPath, "aspire-manifest.json");
Aspire.Hosting.Azure.Tests (1)
ProvisioningTestHelpers.cs (1)
92OutputPath = outputPath,
Aspire.Hosting.Tests (1)
ManifestGenerationTests.cs (1)
279options.OutputPath = program.AppBuilder.AppHostDirectory;
14 references to OutputPath
Aspire.Hosting (11)
Publishing\ManifestPublisher.cs (7)
28if (_options.Value.OutputPath == null) 35if (!_options.Value.OutputPath.EndsWith(".json")) 42_options.Value.OutputPath = Path.Combine(_options.Value.OutputPath, "aspire-manifest.json"); 45var parentDirectory = Directory.GetParent(_options.Value.OutputPath); 52using var stream = new FileStream(_options.Value.OutputPath, FileMode.Create); 57var fullyQualifiedPath = Path.GetFullPath(_options.Value.OutputPath); 63var manifestPath = _options.Value.OutputPath ?? throw new DistributedApplicationException("The '--output-path [path]' option was not specified even though '--publisher manifest' argument was used.");
Publishing\Publisher.cs (4)
21if (options.Value.OutputPath == null && !options.Value.Deploy) 80var deployingContext = new DeployingContext(model, executionContext, serviceProvider, logger, cancellationToken, options.Value.OutputPath is not null ? 81Path.GetFullPath(options.Value.OutputPath) : null); 86var outputPath = Path.GetFullPath(options.Value.OutputPath!);
Aspire.Hosting.Tests (3)
DistributedApplicationBuilderTests.cs (3)
53Assert.Null(options.Value.OutputPath); 76Assert.Equal("/tmp/", publishOptions.Value.OutputPath); 89Assert.Equal("/path/", publishOptions.Value.OutputPath);