82 references to TrueString
Aspire.Dashboard (4)
Authentication\OtlpCompositeAuthenticationHandler.cs (1)
36var id = new ClaimsIdentity([new Claim(OtlpAuthorization.OtlpClaimName, bool.TrueString)]);
Authentication\UnsecuredAuthenticationHandler.cs (1)
20[new Claim(ClaimTypes.NameIdentifier, "Local"), new Claim(FrontendAuthorizationDefaults.UnsecuredClaimName, bool.TrueString)],
DashboardWebApplication.cs (2)
780claimsIdentity.AddClaim(new Claim(FrontendAuthorizationDefaults.BrowserTokenClaimName, bool.TrueString)); 796.RequireClaim(OtlpAuthorization.OtlpClaimName, [bool.TrueString])
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
484data[DashboardConfigNames.DashboardUnsecuredAllowAnonymousName.ConfigKey] = bool.TrueString;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputCheckbox.cs (1)
43builder.AddAttribute(6, "value", bool.TrueString);
Microsoft.Build (2)
Construction\ProjectUsingTaskBodyElement.cs (1)
92return bool.TrueString;
Logging\BinaryLogger\BinaryLogger.cs (1)
172Environment.SetEnvironmentVariable("MSBUILDBINARYLOGGERENABLED", bool.TrueString);
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\UsingTaskBodyElement_Tests.cs (1)
122Assert.Equal(bool.TrueString, body.Evaluate);
Microsoft.Build.Engine.UnitTests (41)
BackEnd\LoggingConfigurationTelemetry_Tests.cs (5)
66properties["TerminalLogger"].ShouldBe(bool.TrueString); 71properties["ConsoleLogger"].ShouldBe(bool.TrueString); 74properties["FileLogger"].ShouldBe(bool.TrueString); 78properties["BinaryLogger"].ShouldBe(bool.TrueString); 79properties["BinaryLoggerUsedDefaultName"].ShouldBe(bool.TrueString);
BackEnd\TaskRegistry_Tests.cs (24)
1304ProjectUsingTaskParameterElement filledOutAttributesParameter = parameterGroup.AddParameter("ParameterWithAllAttributesHardCoded", bool.TrueString, bool.TrueString, typeof(Int32).FullName); 1345string output = bool.TrueString; 1346string required = bool.TrueString; 1360string output = bool.TrueString; 1361string required = bool.TrueString; 1377string output = bool.TrueString; 1378string required = bool.TrueString; 1396string required = bool.TrueString; 1421string required = bool.TrueString; 1437string required = bool.TrueString; 1463string required = bool.TrueString; 1485string required = bool.TrueString; 1507string output = bool.TrueString; 1508string required = bool.TrueString; 1555string output = bool.TrueString; 1556string required = bool.TrueString; 1571string required = bool.TrueString; 1586string required = bool.TrueString; 1603string required = bool.TrueString; 1617string output = bool.TrueString; 1632string output = bool.TrueString; 1649string output = bool.TrueString; 1790List<ProjectUsingTaskElement> elementList = CreateTaskBodyElementWithAttributes(bool.TrueString, body);
Construction\SolutionProjectGenerator_Tests.cs (1)
1228Assert.Contains(@"BuildProjectInSolution=""" + bool.TrueString + @"""", solutionConfigurationContents);
Definition\Project_Internal_Tests.cs (3)
286project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 314project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 344project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
Evaluation\Expander_Tests.cs (1)
5180result.ShouldBe(Boolean.TrueString);
Instance\ProjectInstance_Internal_Tests.cs (2)
906projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 934projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
TerminalLoggerConfiguration_Tests.cs (5)
111_env.SetEnvironmentVariable("DOTNET_CLI_CONFIGURE_MSBUILD_TERMINAL_LOGGER", bool.TrueString); 112string output = RunnerUtilities.ExecMSBuild($"{_cmd} -tlp:default={bool.TrueString}", out bool success); 118TerminalLoggerDefault = bool.TrueString, 140_env.SetEnvironmentVariable(envVarSource, bool.TrueString); 149TerminalLoggerUserIntent = bool.TrueString,
Microsoft.Build.Tasks.UnitTests (2)
ProjectExtensionsImportTestBase.cs (2)
119project.GetPropertyValue(PropertyNameToEnableImport).ShouldBe(bool.TrueString, StringCompareShould.IgnoreCase); 120project.GetPropertyValue(PropertyNameToSignalImportSucceeded).ShouldBe(bool.TrueString, StringCompareShould.IgnoreCase);
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\WorkspaceProject.cs (2)
167case "RunAnalyzers": _project.RunAnalyzers = bool.Parse(valueOrNull ?? bool.TrueString); break; 168case "RunAnalyzersDuringLiveAnalysis": _project.RunAnalyzersDuringLiveAnalysis = bool.Parse(valueOrNull ?? bool.TrueString); break;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Build\ProjectBuildManager.cs (4)
31{ PropertyNames.DesignTimeBuild, bool.TrueString }, 39{ PropertyNames.BuildingInsideVisualStudio, bool.TrueString }, 46{ PropertyNames.ProvideCommandLineArgs, bool.TrueString }, 49{ PropertyNames.SkipCompilerExecution, bool.TrueString },
MSBuild\ProjectFile\Conversions.cs (1)
16&& (string.Equals(bool.TrueString, value, StringComparison.OrdinalIgnoreCase) ||
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
479using var workspace = CreateMSBuildWorkspace(("ShouldUnsetParentConfigurationAndPlatform", bool.TrueString));
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
191_options.TryAdd("build_property.GenerateComplianceReport", bool.TrueString);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
241_options.TryAdd("build_property.GenerateMetadataReport", bool.TrueString);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
145return string.Equals(generateFiles, bool.TrueString, StringComparison.OrdinalIgnoreCase);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
181_options.TryAdd("build_property.GenerateMetricsReport", bool.TrueString);
Microsoft.Maui.Controls (1)
VisualElement\VisualElement.cs (1)
2446 if (strValue.Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase))
Microsoft.Maui.Controls.DesignTools (1)
VisibilityDesignTypeConverter.cs (1)
9 private static readonly string[] validValues = ["Collapse", "Hidden", bool.FalseString, bool.TrueString, "Visible"];
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
29ElseIf System.String.Compare(Value, Boolean.TrueString, True, loc) = 0 Then
Microsoft\VisualBasic\CompilerServices\Conversions.vb (2)
36ElseIf String.Compare(Value, Boolean.TrueString, True, loc) = 0 Then 2150Return Boolean.TrueString
MSBuild (2)
XMake.cs (2)
1865restoreGlobalProperties[MSBuildConstants.MSBuildIsRestoring] = bool.TrueString; 2978terminalLoggerArg = bool.TrueString;
PresentationBuildTasks (1)
MS\Internal\Tasks\CompilerState.cs (1)
412get { return _cacheInfoList[(int)CompilerStateType.Pass2Required] == bool.TrueString; }
PresentationFramework (2)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
148part.NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationHelper.cs (1)
697locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System.Net.Quic (1)
src\libraries\Common\src\System\AppContextSwitchHelper.cs (1)
22if (str == "1" || string.Equals(str, bool.TrueString, StringComparison.OrdinalIgnoreCase))
System.Text.Json (2)
System\Text\Json\Document\JsonElement.cs (2)
1626/// For <see cref="JsonValueKind.True"/>, <see cref="bool.TrueString"/> is returned. 1655return bool.TrueString;