20 references to DcpPathEnvVar
aspire (7)
Layout\LayoutDiscovery.cs (3)
122LayoutComponent.Dcp => _environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar), 331if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar))) 333_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar);
Projects\DotNetAppHostProject.cs (2)
2619if (!IsUsableDcpDirectory(GetEffectiveEnvironmentValue(env, BundleDiscovery.DcpPathEnvVar)) && 2623env[BundleDiscovery.DcpPathEnvVar] = layoutDcpPath;
Projects\PrebuiltAppHostServer.cs (2)
1525startInfo.Environment[BundleDiscovery.DcpPathEnvVar] = dcpPath; 1536BundleDiscovery.DcpPathEnvVar);
Aspire.Cli.Tests (13)
Projects\DotNetAppHostProjectTests.cs (13)
476Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 532Assert.Equal(customDcpDirectory.FullName, env![BundleDiscovery.DcpPathEnvVar]); 545[BundleDiscovery.DcpPathEnvVar] = customDcpDirectory.FullName, 565[BundleDiscovery.DcpPathEnvVar] = inheritedDcpDirectory, 590Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 628[BundleDiscovery.DcpPathEnvVar] = unusableDcpDirectory, 654Assert.Equal(layout.GetDcpPath(), env![BundleDiscovery.DcpPathEnvVar]); 696Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 742Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 799Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 862Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 2255Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2549Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar));