42 references to BundleDiscovery
aspire (42)
Layout\LayoutConfiguration.cs (13)
101
var bundledPath = Path.Combine(runtimePath,
BundleDiscovery
.GetDotNetExecutableName());
132
return Path.Combine(serverPath,
BundleDiscovery
.GetExecutableFileName(
BundleDiscovery
.AppHostServerExecutableName));
147
return Path.Combine(helperPath,
BundleDiscovery
.GetExecutableFileName(
BundleDiscovery
.NuGetHelperExecutableName));
156
return devCertsPath is not null ? Path.Combine(devCertsPath,
BundleDiscovery
.GetDllFileName(
BundleDiscovery
.DevCertsExecutableName)) : null;
173
public string? Runtime { get; set; } =
BundleDiscovery
.RuntimeDirectoryName;
178
public string? ApphostServer { get; set; } =
BundleDiscovery
.AppHostServerDirectoryName;
183
public string? Dashboard { get; set; } =
BundleDiscovery
.DashboardDirectoryName;
188
public string? Dcp { get; set; } =
BundleDiscovery
.DcpDirectoryName;
193
public string? NugetHelper { get; set; } =
BundleDiscovery
.NuGetHelperDirectoryName;
198
public string? DevCerts { get; set; } =
BundleDiscovery
.DevCertsDirectoryName;
Layout\LayoutDiscovery.cs (22)
48
var envLayoutPath = Environment.GetEnvironmentVariable(
BundleDiscovery
.LayoutPathEnvVar);
76
LayoutComponent.Runtime => Environment.GetEnvironmentVariable(
BundleDiscovery
.RuntimePathEnvVar),
77
LayoutComponent.Dcp => Environment.GetEnvironmentVariable(
BundleDiscovery
.DcpPathEnvVar),
78
LayoutComponent.Dashboard => Environment.GetEnvironmentVariable(
BundleDiscovery
.DashboardPathEnvVar),
79
LayoutComponent.AppHostServer => Environment.GetEnvironmentVariable(
BundleDiscovery
.AppHostServerPathEnvVar),
96
var useSdk = Environment.GetEnvironmentVariable(
BundleDiscovery
.UseGlobalDotNetEnvVar);
100
_logger.LogDebug("SDK mode forced via {EnvVar}",
BundleDiscovery
.UseGlobalDotNetEnvVar);
188
var runtimePath = Path.Combine(layoutPath,
BundleDiscovery
.RuntimeDirectoryName);
189
var dashboardPath = Path.Combine(layoutPath,
BundleDiscovery
.DashboardDirectoryName);
190
var dcpPath = Path.Combine(layoutPath,
BundleDiscovery
.DcpDirectoryName);
191
var serverPath = Path.Combine(layoutPath,
BundleDiscovery
.AppHostServerDirectoryName);
194
_logger.LogDebug(" {Dir}/: {Exists}",
BundleDiscovery
.RuntimeDirectoryName, Directory.Exists(runtimePath) ? "exists" : "MISSING");
195
_logger.LogDebug(" {Dir}/: {Exists}",
BundleDiscovery
.DashboardDirectoryName, Directory.Exists(dashboardPath) ? "exists" : "MISSING");
196
_logger.LogDebug(" {Dir}/: {Exists}",
BundleDiscovery
.DcpDirectoryName, Directory.Exists(dcpPath) ? "exists" : "MISSING");
197
_logger.LogDebug(" {Dir}/: {Exists}",
BundleDiscovery
.AppHostServerDirectoryName, Directory.Exists(serverPath) ? "exists" : "MISSING");
207
var muxerName =
BundleDiscovery
.GetDotNetExecutableName();
232
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(
BundleDiscovery
.RuntimePathEnvVar)))
234
_logger.LogDebug("Runtime path override from {EnvVar}",
BundleDiscovery
.RuntimePathEnvVar);
236
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(
BundleDiscovery
.DcpPathEnvVar)))
238
_logger.LogDebug("DCP path override from {EnvVar}",
BundleDiscovery
.DcpPathEnvVar);
240
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(
BundleDiscovery
.DashboardPathEnvVar)))
242
_logger.LogDebug("Dashboard path override from {EnvVar}",
BundleDiscovery
.DashboardPathEnvVar);
Layout\LayoutProcessRunner.cs (2)
18
public static string GetCurrent() =>
BundleDiscovery
.GetCurrentRuntimeIdentifier();
23
public static string GetArchiveExtension() =>
BundleDiscovery
.GetArchiveExtension();
Projects\PrebuiltAppHostServer.cs (5)
265
startInfo.Environment[
BundleDiscovery
.RuntimePathEnvVar] = runtimeDir;
283
startInfo.Environment[
BundleDiscovery
.DcpPathEnvVar] = dcpPath;
290
var dashboardExe = Path.Combine(dashboardPath,
BundleDiscovery
.GetExecutableFileName(
BundleDiscovery
.DashboardExecutableName));
291
startInfo.Environment[
BundleDiscovery
.DashboardPathEnvVar] = dashboardExe;