299 references to ErrorUtilities
Microsoft.Build.Utilities.Core (286)
AssemblyFolders\AssemblyFoldersExInfo.cs (3)
24ErrorUtilities.VerifyThrowArgumentNull(registryKey); 25ErrorUtilities.VerifyThrowArgumentNull(directoryPath); 26ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFolders\AssemblyFoldersFromConfigInfo.cs (2)
26ErrorUtilities.VerifyThrowArgumentNull(directoryPath); 27ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFoldersFromConfig.cs (2)
32ErrorUtilities.VerifyThrowArgumentNull(configFile); 33ErrorUtilities.VerifyThrowArgumentNull(targetRuntimeVersion);
AssemblyResources.cs (3)
28ErrorUtilities.VerifyThrow(resource != null, "Missing resource '{0}'", 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);
EventArgsFormatting.cs (5)
72ErrorUtilities.VerifyThrowArgumentNull(e); 89ErrorUtilities.VerifyThrowArgumentNull(e); 105ErrorUtilities.VerifyThrowArgumentNull(e); 122ErrorUtilities.VerifyThrowArgumentNull(e); 151ErrorUtilities.VerifyThrowArgumentNull(e);
ExtensionFoldersRegistryKey.cs (2)
20ErrorUtilities.VerifyThrowArgumentNull(registryKey); 21ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
FileMatcher.cs (8)
233ErrorUtilities.ThrowInternalError("Unexpected filesystem entity type."); 451ErrorUtilities.VerifyThrow(!HasWildcards(path), 517ErrorUtilities.VerifyThrow(entries.Count == 1, 841ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null), 844ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null), 847ErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1183ErrorUtilities.VerifyThrow( 1663ErrorUtilities.ThrowInternalError("Unexpected empty 'input' provided.");
FileUtilities.cs (10)
204ErrorUtilities.ThrowArgument("DebugPathTooLong", directory); 413ErrorUtilities.VerifyThrowInternalLength(path, nameof(path)); 414ErrorUtilities.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive"); 485ErrorUtilities.VerifyThrowArgumentLength(path); 1168ErrorUtilities.VerifyThrowArgumentNull(basePath); 1169ErrorUtilities.VerifyThrowArgumentLength(path); 1177ErrorUtilities.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes."); 1306ErrorUtilities.VerifyThrowArgumentNull(root); 1307ErrorUtilities.VerifyThrowArgumentNull(paths); 1517ErrorUtilities.ThrowArgument("InvalidGetPathOfFileAboveParameter", file);
FrameworkLocationHelper.cs (12)
635ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 645ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 670ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 680ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 978ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkRootPath); 979ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 993ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message); 1007ErrorUtilities.VerifyThrowArgumentOutOfRange(numberOfLevelsToRemove > 0, nameof(numberOfLevelsToRemove)); 1122ErrorUtilities.VerifyThrowArgument(VisualStudioSpecDict.Value.TryGetValue(version, out VisualStudioSpec spec), "FrameworkLocationHelper.UnsupportedVisualStudioVersion", version); 1128ErrorUtilities.VerifyThrowArgument(DotNetFrameworkSpecDict.Value.TryGetValue(version, out DotNetFrameworkSpec spec), "FrameworkLocationHelper.UnsupportedFrameworkVersion", version); 1555ErrorUtilities.VerifyThrowArgument(this._visualStudioVersion != null, "FrameworkLocationHelper.UnsupportedFrameworkVersionForWindowsSdk", this.Version); 1561ErrorUtilities.ThrowArgument("FrameworkLocationHelper.UnsupportedFrameworkVersionForWindowsSdk", this.Version);
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");
Modifiers.cs (8)
385ErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 386ErrorUtilities.VerifyThrow(modifier != null, "Need modifier to apply to item-spec."); 417ErrorUtilities.VerifyThrow(FileUtilitiesRegex.StartsWithUncPattern(modifiedItemSpec), 478ErrorUtilities.VerifyThrow((modifiedItemSpec.Length > length) && IsSlash(modifiedItemSpec[length]), 486ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(modifiedItemSpec) && IsSlash(modifiedItemSpec[0]), 588ErrorUtilities.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier); 597ErrorUtilities.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier); 602ErrorUtilities.ThrowInvalidOperation("Shared.InvalidFilespecForTransform", modifier, itemSpec, e.Message);
MSBuildNameIgnoreCaseComparer.cs (2)
49ErrorUtilities.ThrowInternalError("Invalid lengthToCompare '{0}' {1} {2}", constrainedString, start, lengthToCompare); 54ErrorUtilities.ThrowInternalError("Invalid start '{0}' {1} {2}", constrainedString, start, lengthToCompare);
PlatformManifest.cs (1)
31ErrorUtilities.VerifyThrowArgumentLength(pathToManifest);
PrintLineDebugger.cs (4)
30ErrorUtilities.VerifyThrowInternalNull(propertyInfo); 77ErrorUtilities.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first"); 99ErrorUtilities.ThrowInternalError("Cannot unset an already null writer"); 161ErrorUtilities.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ReadOnlyEmptyCollection.cs (3)
87ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 95ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 118ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ReadOnlyEmptyDictionary.cs (6)
176ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 185ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 201ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 219ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 227ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 250ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ResourceUtilities.cs (6)
42ErrorUtilities.VerifyThrowInternalNull(message); 438ErrorUtilities.ThrowInternalError( 464ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 472ErrorUtilities.ThrowInternalError(e.Message); 479ErrorUtilities.ThrowInternalError(e.Message); 486ErrorUtilities.ThrowInternalError(e.Message);
SDKManifest.cs (1)
111ErrorUtilities.VerifyThrowArgumentLength(pathToSdk);
TargetPlatformSDK.cs (2)
44ErrorUtilities.VerifyThrowArgumentNull(targetPlatformIdentifier); 45ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion);
TaskItem.cs (11)
100ErrorUtilities.VerifyThrowArgumentNull(itemSpec); 119ErrorUtilities.VerifyThrowArgumentNull(itemMetadata); 144ErrorUtilities.VerifyThrowArgumentNull(sourceItem); 180ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ItemSpec)); 263ErrorUtilities.VerifyThrowArgumentNull(metadataName); 264ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.IsItemSpecModifier(metadataName), 282ErrorUtilities.VerifyThrowArgumentLength(metadataName); 286ErrorUtilities.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName), 316ErrorUtilities.VerifyThrowArgumentNull(destinationItem); 439ErrorUtilities.VerifyThrowArgumentNull(taskItemToCast); 452ErrorUtilities.VerifyThrowArgumentNull(metadataName);
TaskLoggingHelper.cs (37)
54ErrorUtilities.VerifyThrowArgumentNull(taskInstance); 64ErrorUtilities.VerifyThrowArgumentNull(buildEngine); 65ErrorUtilities.VerifyThrowArgumentLength(taskName); 183ErrorUtilities.VerifyThrowArgumentNull(message); 207ErrorUtilities.VerifyThrowArgumentNull(resourceName); 208ErrorUtilities.VerifyThrowInvalidOperation(TaskResources != null, "Shared.TaskResourcesNotRegistered", TaskName); 212ErrorUtilities.VerifyThrowArgument(resourceString != null, "Shared.TaskResourceNotFound", resourceName, TaskName); 227ErrorUtilities.VerifyThrowArgumentNull(unformatted); 296ErrorUtilities.VerifyThrowArgumentNull(message); 323ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 332ErrorUtilities.VerifyThrow(errorCode == null, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message); 366ErrorUtilities.VerifyThrowArgumentNull(message); 376ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 428ErrorUtilities.VerifyThrowArgumentNull(message); 433ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 492ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 505ErrorUtilities.VerifyThrow(errorCode == null, errorCode, FormatResourceString(messageResourceName, messageArgs)); 516ErrorUtilities.VerifyThrowArgumentNull(filePath); 517ErrorUtilities.VerifyThrowArgumentNull(content); 607ErrorUtilities.VerifyThrowArgumentNull(commandLine); 621ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 703ErrorUtilities.VerifyThrowArgumentNull(message); 708ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 780ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 797ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 863ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 931ErrorUtilities.VerifyThrowArgumentNull(exception); 1054ErrorUtilities.VerifyThrowArgumentNull(message); 1059ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 1150ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1165ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 1231ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1283ErrorUtilities.VerifyThrowArgumentNull(exception); 1325ErrorUtilities.VerifyThrowArgumentNull(fileName); 1352ErrorUtilities.VerifyThrowArgumentNull(stream); 1380ErrorUtilities.VerifyThrowArgumentNull(lineOfText); 1438ErrorUtilities.ThrowInternalError("Impossible canonical part.");
TempFileUtilities.cs (2)
162ErrorUtilities.VerifyThrowArgumentLengthIfNotNull(directory, nameof(directory)); 188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ToolLocationHelper.cs (121)
324ErrorUtilities.VerifyThrowArgumentLength(registryRoot); 325ErrorUtilities.VerifyThrowArgumentLength(registryKeySuffix); 326ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 356ErrorUtilities.VerifyThrowArgumentLength(configFile); 357ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 462ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 463ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 467ErrorUtilities.DebugTraceMessage("GetPlatformExtensionSDKLocations", "Calling with TargetPlatformIdentifier:'{0}' and TargetPlatformVersion: '{1}'", targetPlatformIdentifier, targetPlatformVersionString); 520ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 521ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 522ErrorUtilities.VerifyThrowArgumentLength(sdkMoniker); 585ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 652ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 653ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 654ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 716ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 717ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 718ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 746ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 747ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 748ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 823ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 824ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 852ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Target platform props file location '{0}' did not exist.", propsFileLocation); 857ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Could not find root SDK location for SDKI = '{0}', SDKV = '{1}'", sdkIdentifier, sdkVersion); 862ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message); 966ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find root SDK for SDKI = '{0}', SDKV = '{1}'", targetSdkIdentifier, targetSdkVersion); 987ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find matching extension SDK = '{0}'", extensionSdkMoniker); 1022ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1023ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1037ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Target platform location '{0}' did not exist", winmdLocation); 1043ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Could not find root SDK location for TPI = '{0}', TPV = '{1}'", targetPlatformIdentifier, targetPlatformVersion); 1052ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, winmdLocation); 1059ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message); 1078ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1079ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1080ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1081ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1130ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Gathering contract references for contract with name '{0}' and version '{1}", contract.Name, contract.Version); 1139ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, contractPath); 1159ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Target platform location '{0}' did not exist or did not contain Platform.xml", platformManifestLocation); 1164ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Could not find root SDK for '{0}'", platformKey); 1179ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", e.Message); 1205ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1206ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1221ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1222ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1284ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1333ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1334ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1372ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1373ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1536ErrorUtilities.DebugTraceMessage("TryParsePlatformVersion", "Cannot create FrameworkName object, Exception:{0}", e.Message); 1556ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1584ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1585ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1810ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1811ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1913ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1914ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1915ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkProfile); 1935ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2054ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedFrameworkVersion", version); 2075ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedVisualStudioVersion", version); 2213ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootPath); 2215ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2499ErrorUtilities.DebugTraceMessage("GatherExtensionSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot); 2520ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found ExtensionsSDK folder '{0}'. ", extensionSdksDirectory.FullName); 2523ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkName directories under '{1}'", sdkNameDirectories.Length, extensionSdksDirectory.FullName); 2529ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkVersion directories under '{1}'", sdkVersionDirectories.Length, sdkNameFolders.FullName); 2535ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Parsed sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2545ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was not already found.", SDKKey); 2553ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "No SDKManifest.xml files could be found at '{0}'. Not adding sdk", pathToSDKManifest); 2558ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was already found, not adding sdk under '{1}'", SDKKey, sdkVersionDirectory.FullName); 2563ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Failed to parse sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2579ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot); 2590ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does not exist. ", rootPathWithIdentifier); 2594ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does exist. Enumerating version folders under it. ", rootPathWithIdentifier); 2601ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Found '{0}' version folders under the identifier path '{1}'. ", versionsInRoot.Count, rootPathWithIdentifier); 2654ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Could not find ExtensionsSDK folder '{0}'. ", sdkFolderPath); 2668ErrorUtilities.VerifyThrowArgumentNull(platformMonikers, "PlatformMonikers"); 2677ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Gathering SDKS from registryRoot '{0}', Hive '{1}', View '{2}'", registryKeyRoot, registryHive, registryView); 2688ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under registryKeyRoot {0}", registryKeyRoot); 2702ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under platformIdentifierKey {0}", platformIdentifierKey); 2765ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", extensionSDKsKey); 2771ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", extensionSDKsKey); 2775ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", extensionSDKsKey); 2787ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", sdkNameKey); 2790ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", sdkNameKey); 2794ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", sdkNameKey); 2804ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting default key for '{0}'", sdkDirectoryKey); 2811ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK installation location = '{0}'", directoryName); 2821ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Adding SDK '{0}' at '{1}' to the list of found sdks.", sdkKey, directoryName); 2826ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No SDKManifest.xml file found at '{0}'.", sdkManifestFileLocation); 2831ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK directory '{0}' does not exist", directoryName); 2836ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK key was previously added. '{0}'", sdkKey); 2841ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Default key is null for '{0}'", sdkDirectoryKey); 2922ErrorUtilities.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", "DiskRoots from Registry '{0}'", string.Join(";", splitRoots)); 2947ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2952ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots"); 2957ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2972ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2976ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2986ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot passed in '{0}'", registryRootLocation ?? string.Empty); 3002ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot to be looked under '{0}'", registryRoot); 3006ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "MSBUILDDISABLEREGISTRYFORSDKLOOKUP is set registry sdk lookup is disabled"); 3017ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(sdk.Path), "SDK path must be set"); 3027ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform identifier directories under '{1}'", platformIdentifiers.Length, platformsRoot); 3033ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform version directories under '{1}'", platformVersions.Length, platformIdentifier.FullName); 3047ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was not already found.", sdkKey); 3056ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "No Platform.xml could be found at '{0}'. Not adding this platform", pathToPlatformManifest); 3061ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was already found, not adding platform under '{1}'", sdkKey, platformVersion.FullName); 3066ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Failed to parse platform version folder '{0}' under '{1}'", platformVersion.Name, platformVersion.FullName); 3074ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", e.Message); 3165ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3169ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3217ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message); 3401ErrorUtilities.ThrowInternalErrorUnreachable(); 3663ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootDirectory); 3664ErrorUtilities.VerifyThrowArgumentLength(frameworkIdentifier); 3727ErrorUtilities.ThrowInternalErrorUnreachable();
ToolTask.cs (9)
959ErrorUtilities.ThrowInternalError("Unknown tool notification."); 995ErrorUtilities.VerifyThrow(Timeout != System.Threading.Timeout.Infinite, 1097ErrorUtilities.VerifyThrow(dataQueue != null, 1130ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1159ErrorUtilities.VerifyThrow(_toolTimeoutExpired != null, 1179ErrorUtilities.VerifyThrow(_toolExited != null, 1227ErrorUtilities.VerifyThrow(dataQueue != null, 1241ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1575ErrorUtilities.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( 760ErrorUtilities.VerifyThrowArgumentNull(messageResourceName);
Microsoft.Build.Utilities.UnitTests (13)
ConversionUtilities.cs (3)
9using Error = Microsoft.Build.Shared.ErrorUtilities; 40Error.ThrowArgument("Shared.CannotConvertStringToBool", parameterValue); 159Error.ThrowInternalError("Cannot numeric evaluate");
ErrorUtilities_Tests.cs (7)
19ErrorUtilities.VerifyThrow(false, "msbuild rules"); 34ErrorUtilities.VerifyThrow(true, "msbuild rules"); 41ErrorUtilities.VerifyThrow(true, "blah"); 48ErrorUtilities.VerifyThrow(true, "{0}", "a"); 55ErrorUtilities.VerifyThrow(true, "{0}{1}", "a", "b"); 62ErrorUtilities.VerifyThrow(true, "{0}{1}{2}", "a", "b", "c"); 69ErrorUtilities.VerifyThrow(true, "{0}{1}{2}{3}", "a", "b", "c", "d");
StringExtensions.cs (3)
18ErrorUtilities.VerifyThrowArgumentNull(aString); 19ErrorUtilities.VerifyThrowArgumentNull(oldValue); 20ErrorUtilities.VerifyThrowArgumentLength(oldValue);