18 references to AddIfNotNull
Microsoft.Build.Framework (18)
Telemetry\BuildTelemetry.cs (18)
220AddIfNotNull(BuildEngineDisplayVersion); 221AddIfNotNull(BuildEngineFrameworkName); 222AddIfNotNull(BuildEngineHost); 223AddIfNotNull(InitialMSBuildServerState); 224AddIfNotNull(ProjectPath != null ? Path.GetFileName(ProjectPath) : null, nameof(ProjectPath)); 225AddIfNotNull(ServerFallbackReason); 226AddIfNotNull(ServerEnableReason); 227AddIfNotNull(SanitizeBuildTarget(BuildTarget), nameof(BuildTarget)); 228AddIfNotNull(BuildEngineVersion?.ToString(), nameof(BuildEngineVersion)); 229AddIfNotNull(BuildSuccess?.ToString(), nameof(BuildSuccess)); 230AddIfNotNull(BuildCheckEnabled?.ToString(), nameof(BuildCheckEnabled)); 231AddIfNotNull(MultiThreadedModeEnabled?.ToString(), nameof(MultiThreadedModeEnabled)); 232AddIfNotNull(TaskHostConsoleOutputForwarded?.ToString(), nameof(TaskHostConsoleOutputForwarded)); 233AddIfNotNull(SACEnabled?.ToString(), nameof(SACEnabled)); 234AddIfNotNull(CoordinatorWaitDurationMs?.ToString(CultureInfo.InvariantCulture), nameof(CoordinatorWaitDurationMs)); 235AddIfNotNull(IsStandaloneExecution?.ToString(), nameof(IsStandaloneExecution)); 236AddIfNotNull(FailureCategory); 237AddIfNotNull(ErrorCounts?.ToString(), nameof(ErrorCounts));