20 references to DcpPathEnvVar
aspire (7)
Layout\LayoutDiscovery.cs (3)
122LayoutComponent.Dcp => _environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar), 350if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar))) 352_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar);
Projects\DotNetAppHostProject.cs (2)
2712if (!IsUsableDcpDirectory(GetEffectiveEnvironmentValue(env, BundleDiscovery.DcpPathEnvVar)) && 2716env[BundleDiscovery.DcpPathEnvVar] = layoutDcpPath;
Projects\PrebuiltAppHostServer.cs (2)
902startInfo.Environment[BundleDiscovery.DcpPathEnvVar] = dcpPath; 913BundleDiscovery.DcpPathEnvVar);
Aspire.Cli.Tests (13)
Projects\DotNetAppHostProjectTests.cs (13)
527Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 582Assert.Equal(customDcpDirectory.FullName, env![BundleDiscovery.DcpPathEnvVar]); 595[BundleDiscovery.DcpPathEnvVar] = customDcpDirectory.FullName, 615[BundleDiscovery.DcpPathEnvVar] = inheritedDcpDirectory, 640Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 678[BundleDiscovery.DcpPathEnvVar] = unusableDcpDirectory, 704Assert.Equal(layout.GetDcpPath(), env![BundleDiscovery.DcpPathEnvVar]); 746Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 793Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 850Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 912Assert.False(env!.ContainsKey(BundleDiscovery.DcpPathEnvVar)); 2338Assert.Equal(Path.Combine(bundleRoot.FullName, BundleDiscovery.DcpDirectoryName), env![BundleDiscovery.DcpPathEnvVar]); 2653Assert.False(env.ContainsKey(BundleDiscovery.DcpPathEnvVar));