20 references to DcpPathEnvVar
aspire (7)
Layout\LayoutDiscovery.cs (3)
122LayoutComponent.Dcp => _environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar), 348if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar))) 350_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar);
Projects\DotNetAppHostProject.cs (2)
2637if (!IsUsableDcpDirectory(GetEffectiveEnvironmentValue(env, BundleDiscovery.DcpPathEnvVar)) && 2641env[BundleDiscovery.DcpPathEnvVar] = layoutDcpPath;
Projects\PrebuiltAppHostServer.cs (2)
1431startInfo.Environment[BundleDiscovery.DcpPathEnvVar] = dcpPath; 1442BundleDiscovery.DcpPathEnvVar);
Aspire.Cli.Tests (13)
Projects\DotNetAppHostProjectTests.cs (13)
487Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 542Assert.Equal(customDcpDirectory.FullName, env![BundleDiscovery.DcpPathEnvVar]); 555[BundleDiscovery.DcpPathEnvVar] = customDcpDirectory.FullName, 575[BundleDiscovery.DcpPathEnvVar] = inheritedDcpDirectory, 600Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 638[BundleDiscovery.DcpPathEnvVar] = unusableDcpDirectory, 664Assert.Equal(layout.GetDcpPath(), env![BundleDiscovery.DcpPathEnvVar]); 706Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 753Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 810Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 872Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 2298Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2613Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar));