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