2 writes to OutputPath
Aspire.Hosting (1)
Publishing\ManifestPublisher.cs (1)
42
_options.Value.
OutputPath
= Path.Combine(_options.Value.OutputPath, "aspire-manifest.json");
Aspire.Hosting.Tests (1)
ManifestGenerationTests.cs (1)
280
options.
OutputPath
= program.AppBuilder.AppHostDirectory;
12 references to OutputPath
Aspire.Hosting (9)
Publishing\ManifestPublisher.cs (7)
28
if (_options.Value.
OutputPath
== null)
35
if (!_options.Value.
OutputPath
.EndsWith(".json"))
42
_options.Value.OutputPath = Path.Combine(_options.Value.
OutputPath
, "aspire-manifest.json");
45
var parentDirectory = Directory.GetParent(_options.Value.
OutputPath
);
52
using var stream = new FileStream(_options.Value.
OutputPath
, FileMode.Create);
57
var fullyQualifiedPath = Path.GetFullPath(_options.Value.
OutputPath
);
63
var 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 (2)
20
if (options.Value.
OutputPath
== null)
27
var context = new PublishingContext(model, executionContext, serviceProvider, logger, cancellationToken, Path.GetFullPath(options.Value.
OutputPath
));
Aspire.Hosting.Tests (3)
DistributedApplicationBuilderTests.cs (3)
54
Assert.Null(options.Value.
OutputPath
);
77
Assert.Equal("/tmp/", publishOptions.Value.
OutputPath
);
90
Assert.Equal("/path/", publishOptions.Value.
OutputPath
);