3 implementations of GetEnvironmentVariableAsBool
dotnet.Tests (1)
ShellShimTests\WindowsEnvironmentPathTests.cs (1)
149
public bool
GetEnvironmentVariableAsBool
(string name, bool defaultValue)
Microsoft.DotNet.Cli.Utils (1)
EnvironmentProvider.cs (1)
111
public bool
GetEnvironmentVariableAsBool
(string name, bool defaultValue)
Microsoft.NET.Build.Containers.UnitTests (1)
RegistryTests.cs (1)
633
public bool
GetEnvironmentVariableAsBool
(string name, bool defaultValue)
12 references to GetEnvironmentVariableAsBool
dotnet (1)
Telemetry\Telemetry.cs (1)
47
Enabled = !environmentProvider.
GetEnvironmentVariableAsBool
(EnvironmentVariableNames.TELEMETRY_OPTOUT, defaultValue: CompileOptions.TelemetryOptOutDefault)
dotnet.Tests (10)
ConfigurerTests\GivenADotnetFirstTimeUseConfigurerWIthStateSetup.cs (10)
78
.Setup(p => p.
GetEnvironmentVariableAsBool
("DOTNET_GENERATE_ASPNET_CERTIFICATE", It.IsAny<bool>()))
81
.Setup(p => p.
GetEnvironmentVariableAsBool
("DOTNET_CLI_TELEMETRY_OPTOUT", It.IsAny<bool>()))
84
.Setup(p => p.
GetEnvironmentVariableAsBool
("DOTNET_NOLOGO", It.IsAny<bool>()))
87
.Setup(p => p.
GetEnvironmentVariableAsBool
("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", It.IsAny<bool>()))
90
.Setup(p => p.
GetEnvironmentVariableAsBool
("DOTNET_SKIP_WORKLOAD_INTEGRITY_CHECK", It.IsAny<bool>()))
210
_environmentProviderObject.
GetEnvironmentVariableAsBool
("DOTNET_GENERATE_ASPNET_CERTIFICATE", true);
212
_environmentProviderObject.
GetEnvironmentVariableAsBool
("DOTNET_CLI_TELEMETRY_OPTOUT", false);
214
_environmentProviderObject.
GetEnvironmentVariableAsBool
("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", defaultValue: true);
216
_environmentProviderObject.
GetEnvironmentVariableAsBool
("DOTNET_NOLOGO", defaultValue: false);
218
_environmentProviderObject.
GetEnvironmentVariableAsBool
("DOTNET_SKIP_WORKLOAD_INTEGRITY_CHECK", defaultValue: false);
Microsoft.DotNet.Cli.Utils (1)
Env.cs (1)
22
s_environment.
GetEnvironmentVariableAsBool
(name, defaultValue);