239 references to ErrorUtilities
Microsoft.Build.Utilities.Core (231)
AssemblyFolders\AssemblyFoldersExInfo.cs (3)
22ErrorUtilities.VerifyThrowArgumentNull(registryKey); 23ErrorUtilities.VerifyThrowArgumentNull(directoryPath); 24ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFolders\AssemblyFoldersFromConfigInfo.cs (2)
24ErrorUtilities.VerifyThrowArgumentNull(directoryPath); 25ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFoldersFromConfig.cs (2)
31ErrorUtilities.VerifyThrowArgumentNull(configFile); 32ErrorUtilities.VerifyThrowArgumentNull(targetRuntimeVersion);
AssemblyResources.cs (3)
28ErrorUtilities.VerifyThrow(resource != null, $"Missing resource '{name}'"); 56ErrorUtilities.VerifyThrowArgumentNull(unformatted); 75ErrorUtilities.VerifyThrowArgumentNull(resourceName);
CommandLineBuilder.cs (18)
250ErrorUtilities.VerifyThrowArgumentNull(buffer); 407ErrorUtilities.VerifyThrowArgumentNull(delimiter); 442ErrorUtilities.VerifyThrowArgumentNull(delimiter); 486ErrorUtilities.VerifyThrowArgumentNull(switchName); 503ErrorUtilities.VerifyThrowArgumentNull(switchName); 525ErrorUtilities.VerifyThrowArgument( 532ErrorUtilities.VerifyThrowArgument( 552ErrorUtilities.VerifyThrowArgumentNull(switchName); 573ErrorUtilities.VerifyThrowArgumentNull(switchName); 574ErrorUtilities.VerifyThrowArgumentNull(delimiter); 605ErrorUtilities.VerifyThrowArgumentNull(switchName); 606ErrorUtilities.VerifyThrowArgumentNull(delimiter); 643ErrorUtilities.VerifyThrowArgumentNull(switchName); 664ErrorUtilities.VerifyThrowArgumentNull(switchName); 684ErrorUtilities.VerifyThrowArgumentNull(switchName); 685ErrorUtilities.VerifyThrowArgumentNull(delimiter); 715ErrorUtilities.VerifyThrowArgumentNull(switchName); 716ErrorUtilities.VerifyThrowArgumentNull(delimiter);
ExtensionFoldersRegistryKey.cs (2)
19ErrorUtilities.VerifyThrowArgumentNull(registryKey); 20ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
InprocTrackingNativeMethods.cs (2)
251ErrorUtilities.VerifyThrow(s_fileTrackerDllHandle != null, "fileTrackerDllHandle should not be null"); 252ErrorUtilities.VerifyThrow(!s_fileTrackerDllHandle.IsInvalid, "Handle for FileTracker.dll should not be invalid");
PlatformManifest.cs (1)
32ErrorUtilities.VerifyThrowArgumentLength(pathToManifest);
PrintLineDebugger.cs (4)
32ErrorUtilities.VerifyThrowInternalNull(propertyInfo); 83ErrorUtilities.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first"); 105ErrorUtilities.ThrowInternalError("Cannot unset an already null writer"); 169ErrorUtilities.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ResourceUtilities.cs (6)
39ErrorUtilities.VerifyThrowInternalNull(message); 428ErrorUtilities.ThrowInternalError($"Invalid resource parameter type, was {param.GetType().FullName}"); 452ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 460ErrorUtilities.ThrowInternalError(e.Message); 467ErrorUtilities.ThrowInternalError(e.Message); 474ErrorUtilities.ThrowInternalError(e.Message);
SDKManifest.cs (1)
112ErrorUtilities.VerifyThrowArgumentLength(pathToSdk);
TargetPlatformSDK.cs (2)
45ErrorUtilities.VerifyThrowArgumentNull(targetPlatformIdentifier); 46ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion);
TaskItem.cs (10)
104ErrorUtilities.VerifyThrowArgumentNull(itemSpec); 123ErrorUtilities.VerifyThrowArgumentNull(itemMetadata); 150ErrorUtilities.VerifyThrowArgumentNull(sourceItem); 186ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ItemSpec)); 276ErrorUtilities.VerifyThrowArgumentNull(metadataName); 277ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsItemSpecModifier(metadataName), 309ErrorUtilities.VerifyThrowArgumentLength(metadataName); 313ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName), 343ErrorUtilities.VerifyThrowArgumentNull(destinationItem); 493ErrorUtilities.VerifyThrowArgumentNull(taskItemToCast);
TaskLoggingHelper.cs (39)
52ErrorUtilities.VerifyThrowArgumentNull(taskInstance); 62ErrorUtilities.VerifyThrowArgumentNull(buildEngine); 63ErrorUtilities.VerifyThrowArgumentLength(taskName); 181ErrorUtilities.VerifyThrowArgumentNull(message); 205ErrorUtilities.VerifyThrowArgumentNull(resourceName); 206ErrorUtilities.VerifyThrowInvalidOperation(TaskResources != null, "Shared.TaskResourcesNotRegistered", TaskName); 210ErrorUtilities.VerifyThrowArgument(resourceString != null, "Shared.TaskResourceNotFound", resourceName, TaskName); 225ErrorUtilities.VerifyThrowArgumentNull(unformatted); 294ErrorUtilities.VerifyThrowArgumentNull(message); 321ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 330ErrorUtilities.VerifyThrow(errorCode == null, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message); 364ErrorUtilities.VerifyThrowArgumentNull(message); 374ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 426ErrorUtilities.VerifyThrowArgumentNull(message); 431ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 490ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 503ErrorUtilities.VerifyThrow(errorCode == null, $"Message has error code: {message}"); 514ErrorUtilities.VerifyThrowArgumentNull(filePath); 515ErrorUtilities.VerifyThrowArgumentNull(content); 605ErrorUtilities.VerifyThrowArgumentNull(commandLine); 619ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 701ErrorUtilities.VerifyThrowArgumentNull(message); 706ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 778ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 795ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 861ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 929ErrorUtilities.VerifyThrowArgumentNull(exception); 1023ErrorUtilities.VerifyThrowArgumentNull(message); 1028ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 1119ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1134ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 1200ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1252ErrorUtilities.VerifyThrowArgumentNull(exception); 1294ErrorUtilities.VerifyThrowArgumentNull(fileName); 1321ErrorUtilities.VerifyThrowArgumentNull(stream); 1349ErrorUtilities.VerifyThrowArgumentNull(lineOfText); 1407ErrorUtilities.ThrowInternalError("Impossible canonical part."); 1549ErrorUtilities.VerifyThrowArgumentNull(exception); 1550ErrorUtilities.VerifyThrowArgumentNull(messageResourceName);
ToolLocationHelper.cs (121)
330ErrorUtilities.VerifyThrowArgumentLength(registryRoot); 331ErrorUtilities.VerifyThrowArgumentLength(registryKeySuffix); 332ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 362ErrorUtilities.VerifyThrowArgumentLength(configFile); 363ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 468ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 469ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 473ErrorUtilities.DebugTraceMessage("GetPlatformExtensionSDKLocations", $"Calling with TargetPlatformIdentifier:'{targetPlatformIdentifier}' and TargetPlatformVersion: '{targetPlatformVersionString}'"); 526ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 527ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 528ErrorUtilities.VerifyThrowArgumentLength(sdkMoniker); 591ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 658ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 659ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 660ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 722ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 723ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 724ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 752ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 753ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 754ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 829ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 830ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 858ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Target platform props file location '{propsFileLocation}' did not exist."); 863ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Could not find root SDK location for SDKI = '{sdkIdentifier}', SDKV = '{sdkVersion}'"); 868ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Encountered exception trying to get the SDK props file Location : {e.Message}"); 972ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", $"Could not find root SDK for SDKI = '{targetSdkIdentifier}', SDKV = '{targetSdkVersion}'"); 993ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", $"Could not find matching extension SDK = '{extensionSdkMoniker}'"); 1028ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1029ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1043ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Target platform location '{winmdLocation}' did not exist"); 1049ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Could not find root SDK location for TPI = '{targetPlatformIdentifier}', TPV = '{targetPlatformVersion}'"); 1058ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Found {winmdPaths.Length} contract winmds in '{winmdLocation}'"); 1065ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Encountered exception trying to gather the platform references: {e.Message}"); 1084ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1085ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1086ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1087ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1136ErrorUtilities.DebugTraceMessage("GetApiContractReferences", $"Gathering contract references for contract with name '{contract.Name}' and version '{contract.Version}'"); 1145ErrorUtilities.DebugTraceMessage("GetApiContractReferences", $"Found {winmdPaths.Length} contract winmds in '{contractPath}'"); 1165ErrorUtilities.DebugTraceMessage("GetPlatformManifest", $"Target platform location '{platformManifestLocation}' did not exist or did not contain Platform.xml"); 1170ErrorUtilities.DebugTraceMessage("GetPlatformManifest", $"Could not find root SDK for '{platformKey}'"); 1185ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", $"Encountered exception trying to check if SDK is versioned: {e.Message}"); 1211ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1212ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1227ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1228ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1290ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1339ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1340ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1378ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1379ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1542ErrorUtilities.DebugTraceMessage("TryParsePlatformVersion", $"Cannot create FrameworkName object, Exception:{e.Message}"); 1562ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1590ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1591ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1816ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1817ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1919ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1920ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1921ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkProfile); 1941ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2060ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedFrameworkVersion", version); 2082ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedVisualStudioVersion", version); 2220ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootPath); 2222ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2506ErrorUtilities.DebugTraceMessage("GatherExtensionSDKListFromDirectory", $"DiskRoot '{diskRoot}' does not exist, skipping it"); 2527ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"Found ExtensionsSDK folder '{extensionSdksDirectory.FullName}'. "); 2530ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"Found '{sdkNameDirectories.Length}' sdkName directories under '{extensionSdksDirectory.FullName}'"); 2536ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"Found '{sdkVersionDirectories.Length}' sdkVersion directories under '{sdkNameFolders.FullName}'"); 2542ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"Parsed sdk version folder '{sdkVersionDirectory.Name}' under '{sdkVersionDirectory.FullName}'"); 2552ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"SDKKey '{SDKKey}' was not already found."); 2560ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"No SDKManifest.xml files could be found at '{pathToSDKManifest}'. Not adding sdk"); 2565ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"SDKKey '{SDKKey}' was already found, not adding sdk under '{sdkVersionDirectory.FullName}'"); 2570ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", $"Failed to parse sdk version folder '{sdkVersionDirectory.Name}' under '{sdkVersionDirectory.FullName}'"); 2586ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", $"DiskRoot '{diskRoot}' does not exist, skipping it"); 2597ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", $"Disk root with Identifier: '{rootPathWithIdentifier}' does not exist. "); 2601ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", $"Disk root with Identifier: '{rootPathWithIdentifier}' does exist. Enumerating version folders under it. "); 2608ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", $"Found '{versionsInRoot.Count}' version folders under the identifier path '{rootPathWithIdentifier}'."); 2661ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", $"Could not find ExtensionsSDK folder '{sdkFolderPath}'. "); 2675ErrorUtilities.VerifyThrowArgumentNull(platformMonikers, "PlatformMonikers"); 2684ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Gathering SDKS from registryRoot '{registryKeyRoot}', Hive '{registryHive}', View '{registryView}'"); 2695ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No sub keys found under registryKeyRoot {registryKeyRoot}"); 2709ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No sub keys found under platformIdentifierKey {platformIdentifierKey}"); 2772ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting subkeys of '{extensionSDKsKey}'"); 2778ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Could not find subkeys of '{extensionSDKsKey}'"); 2782ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Found subkeys of '{extensionSDKsKey}'"); 2794ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting subkeys of '{sdkNameKey}'"); 2797ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Could not find subkeys of '{sdkNameKey}'"); 2801ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Found subkeys of '{sdkNameKey}'"); 2811ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting default key for '{sdkDirectoryKey}'"); 2818ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK installation location = '{directoryName}'"); 2828ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Adding SDK '{sdkKey}' at '{directoryName}' to the list of found sdks."); 2833ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No SDKManifest.xml file found at '{sdkManifestFileLocation}'."); 2838ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK directory '{directoryName}' does not exist"); 2843ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK key was previously added. '{sdkKey}'"); 2848ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Default key is null for '{sdkDirectoryKey}'"); 2929ErrorUtilities.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", $"DiskRoots from Registry '{string.Join(";", splitRoots)}'"); 2954ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", $"Passed in DiskRoots '{string.Join(";", diskRoots)}'"); 2959ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots"); 2964ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", $"Diskroots being used '{string.Join(";", sdkDiskRoots.ToArray())}'"); 2979ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", $"Passed in DiskRoots '{string.Join(";", diskRoots)}'"); 2983ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", $"Diskroots being used '{string.Join(";", sdkDiskRoots.ToArray())}'"); 2993ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", $"RegistryRoot passed in '{registryRootLocation ?? string.Empty}'"); 3009ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", $"RegistryRoot to be looked under '{registryRoot}'"); 3013ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "MSBUILDDISABLEREGISTRYFORSDKLOOKUP is set registry sdk lookup is disabled"); 3024ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(sdk.Path), "SDK path must be set"); 3034ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"Found '{platformIdentifiers.Length}' platform identifier directories under '{platformsRoot}'"); 3040ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"Found '{platformVersions.Length}' platform version directories under '{platformIdentifier.FullName}'"); 3054ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"SDKKey '{sdkKey}' was not already found."); 3063ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"No Platform.xml could be found at '{pathToPlatformManifest}'. Not adding this platform"); 3068ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"SDKKey '{sdkKey}' was already found, not adding platform under '{platformVersion.FullName}'"); 3073ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"Failed to parse platform version folder '{platformVersion.Name}' under '{platformVersion.FullName}'"); 3081ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", $"Encountered exception trying to gather platform-specific data: {e.Message}"); 3172ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3176ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3224ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message); 3408ErrorUtilities.ThrowInternalErrorUnreachable(); 3670ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootDirectory); 3671ErrorUtilities.VerifyThrowArgumentLength(frameworkIdentifier); 3734ErrorUtilities.ThrowInternalErrorUnreachable();
ToolTask.cs (9)
1016ErrorUtilities.ThrowInternalError("Unknown tool notification."); 1052ErrorUtilities.VerifyThrow(Timeout != System.Threading.Timeout.Infinite, 1181ErrorUtilities.VerifyThrow(dataQueue != null, 1214ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1243ErrorUtilities.VerifyThrow(_toolTimeoutExpired != null, 1263ErrorUtilities.VerifyThrow(_toolExited != null, 1329ErrorUtilities.VerifyThrow(dataQueue != null, "The data queue must be available."); 1342ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1681ErrorUtilities.VerifyThrow(nextAction == HostObjectInitializationStatus.UseAlternateToolToExecute,
TrackedDependencies\CanonicalTrackedInputFiles.cs (1)
1032ErrorUtilities.VerifyThrowArgument(source.Length == correspondingOutputs.Length, "Tracking_SourcesAndCorrespondingOutputMismatch");
TrackedDependencies\CanonicalTrackedOutputFiles.cs (2)
275ErrorUtilities.VerifyThrowArgumentNull(sources); 726ErrorUtilities.VerifyThrowArgument(source.Length == correspondingOutputs.Length, "Tracking_SourcesAndCorrespondingOutputMismatch");
TrackedDependencies\FileTracker.cs (3)
341ErrorUtilities.VerifyThrowArgumentNull(sources); 562ErrorUtilities.VerifyThrow( 759ErrorUtilities.VerifyThrowArgumentNull(messageResourceName);
Microsoft.Build.Utilities.UnitTests (8)
ErrorUtilities_Tests.cs (5)
17ErrorUtilities.VerifyThrow(false, "msbuild rules"); 27ErrorUtilities.VerifyThrow(true, "msbuild rules"); 34ErrorUtilities.VerifyThrow(true, $"message {FormatSideEffect(ref formatted)}"); 44ErrorUtilities.VerifyThrow(false, $"error: {FormatSideEffect(ref formatted)}"); 56ErrorUtilities.VerifyThrow(false, $"a={1} b={2} c={"three"}");
StringExtensions.cs (3)
18ErrorUtilities.VerifyThrowArgumentNull(aString); 19ErrorUtilities.VerifyThrowArgumentNull(oldValue); 20ErrorUtilities.VerifyThrowArgumentLength(oldValue);