20 references to DcpPathEnvVar
aspire (7)
Layout\LayoutDiscovery.cs (3)
122LayoutComponent.Dcp => _environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar), 321if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar))) 323_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar);
Projects\DotNetAppHostProject.cs (2)
2565if (!IsUsableDcpDirectory(GetEffectiveEnvironmentValue(env, BundleDiscovery.DcpPathEnvVar)) && 2569env[BundleDiscovery.DcpPathEnvVar] = layoutDcpPath;
Projects\PrebuiltAppHostServer.cs (2)
1484startInfo.Environment[BundleDiscovery.DcpPathEnvVar] = dcpPath; 1495BundleDiscovery.DcpPathEnvVar);
Aspire.Cli.Tests (13)
Projects\DotNetAppHostProjectTests.cs (13)
450Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 508Assert.Equal(customDcpDirectory.FullName, env![BundleDiscovery.DcpPathEnvVar]); 521[BundleDiscovery.DcpPathEnvVar] = customDcpDirectory.FullName, 541[BundleDiscovery.DcpPathEnvVar] = inheritedDcpDirectory, 566Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 604[BundleDiscovery.DcpPathEnvVar] = unusableDcpDirectory, 630Assert.Equal(layout.GetDcpPath(), env![BundleDiscovery.DcpPathEnvVar]); 672Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 717Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 774Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 837Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 2149Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2286Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar));