289 references to ErrorUtilities
Microsoft.Build.Utilities.Core (276)
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); 402ErrorUtilities.VerifyThrowArgumentNull(delimiter); 437ErrorUtilities.VerifyThrowArgumentNull(delimiter); 481ErrorUtilities.VerifyThrowArgumentNull(switchName); 498ErrorUtilities.VerifyThrowArgumentNull(switchName); 520ErrorUtilities.VerifyThrowArgument( 527ErrorUtilities.VerifyThrowArgument( 547ErrorUtilities.VerifyThrowArgumentNull(switchName); 568ErrorUtilities.VerifyThrowArgumentNull(switchName); 569ErrorUtilities.VerifyThrowArgumentNull(delimiter); 600ErrorUtilities.VerifyThrowArgumentNull(switchName); 601ErrorUtilities.VerifyThrowArgumentNull(delimiter); 638ErrorUtilities.VerifyThrowArgumentNull(switchName); 659ErrorUtilities.VerifyThrowArgumentNull(switchName); 679ErrorUtilities.VerifyThrowArgumentNull(switchName); 680ErrorUtilities.VerifyThrowArgumentNull(delimiter); 710ErrorUtilities.VerifyThrowArgumentNull(switchName); 711ErrorUtilities.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)
231ErrorUtilities.ThrowInternalError("Unexpected filesystem entity type."); 449ErrorUtilities.VerifyThrow(!HasWildcards(path), 519ErrorUtilities.VerifyThrow(entries.Count == 1, 844ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null), 847ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null), 850ErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1186ErrorUtilities.VerifyThrow( 1678ErrorUtilities.ThrowInternalError("Unexpected empty 'input' provided.");
FileUtilities.cs (10)
191ErrorUtilities.ThrowArgument("DebugPathTooLong", directory); 392ErrorUtilities.VerifyThrowInternalLength(path, nameof(path)); 393ErrorUtilities.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive"); 464ErrorUtilities.VerifyThrowArgumentLength(path); 1135ErrorUtilities.VerifyThrowArgumentNull(basePath); 1136ErrorUtilities.VerifyThrowArgumentLength(path); 1144ErrorUtilities.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes."); 1273ErrorUtilities.VerifyThrowArgumentNull(root); 1274ErrorUtilities.VerifyThrowArgumentNull(paths); 1484ErrorUtilities.ThrowArgument("InvalidGetPathOfFileAboveParameter", file);
FrameworkLocationHelper.cs (10)
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); 975ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkRootPath); 976ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 990ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message); 1004ErrorUtilities.VerifyThrowArgumentOutOfRange(numberOfLevelsToRemove > 0, nameof(numberOfLevelsToRemove)); 1119ErrorUtilities.VerifyThrowArgument(VisualStudioSpecDict.Value.TryGetValue(version, out VisualStudioSpec spec), "FrameworkLocationHelper.UnsupportedVisualStudioVersion", version); 1125ErrorUtilities.VerifyThrowArgument(DotNetFrameworkSpecDict.Value.TryGetValue(version, out DotNetFrameworkSpec spec), "FrameworkLocationHelper.UnsupportedFrameworkVersion", version);
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)
45ErrorUtilities.VerifyThrowArgumentNull(targetPlatformIdentifier); 46ErrorUtilities.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)
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, errorCode, FormatResourceString(messageResourceName, messageArgs)); 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); 1052ErrorUtilities.VerifyThrowArgumentNull(message); 1057ErrorUtilities.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message); 1148ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1163ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 1229ErrorUtilities.VerifyThrowArgumentNull(messageResourceName); 1281ErrorUtilities.VerifyThrowArgumentNull(exception); 1323ErrorUtilities.VerifyThrowArgumentNull(fileName); 1350ErrorUtilities.VerifyThrowArgumentNull(stream); 1378ErrorUtilities.VerifyThrowArgumentNull(lineOfText); 1436ErrorUtilities.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)
325ErrorUtilities.VerifyThrowArgumentLength(registryRoot); 326ErrorUtilities.VerifyThrowArgumentLength(registryKeySuffix); 327ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 357ErrorUtilities.VerifyThrowArgumentLength(configFile); 358ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 463ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 464ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 468ErrorUtilities.DebugTraceMessage("GetPlatformExtensionSDKLocations", "Calling with TargetPlatformIdentifier:'{0}' and TargetPlatformVersion: '{1}'", targetPlatformIdentifier, targetPlatformVersionString); 521ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 522ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 523ErrorUtilities.VerifyThrowArgumentLength(sdkMoniker); 586ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 653ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 654ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 655ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 717ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 718ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 719ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 747ErrorUtilities.VerifyThrowArgumentLength(sdkRoot); 748ErrorUtilities.VerifyThrowArgumentLength(targetConfiguration); 749ErrorUtilities.VerifyThrowArgumentLength(targetArchitecture); 824ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 825ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 853ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Target platform props file location '{0}' did not exist.", propsFileLocation); 858ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Could not find root SDK location for SDKI = '{0}', SDKV = '{1}'", sdkIdentifier, sdkVersion); 863ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message); 967ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find root SDK for SDKI = '{0}', SDKV = '{1}'", targetSdkIdentifier, targetSdkVersion); 988ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find matching extension SDK = '{0}'", extensionSdkMoniker); 1023ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1024ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1038ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Target platform location '{0}' did not exist", winmdLocation); 1044ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Could not find root SDK location for TPI = '{0}', TPV = '{1}'", targetPlatformIdentifier, targetPlatformVersion); 1053ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, winmdLocation); 1060ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message); 1079ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1080ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1081ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1082ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1131ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Gathering contract references for contract with name '{0}' and version '{1}", contract.Name, contract.Version); 1140ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, contractPath); 1160ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Target platform location '{0}' did not exist or did not contain Platform.xml", platformManifestLocation); 1165ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Could not find root SDK for '{0}'", platformKey); 1180ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", e.Message); 1206ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1207ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1222ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1223ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1285ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1334ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1335ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1373ErrorUtilities.VerifyThrowArgumentNull(sdkIdentifier); 1374ErrorUtilities.VerifyThrowArgumentNull(sdkVersion); 1537ErrorUtilities.DebugTraceMessage("TryParsePlatformVersion", "Cannot create FrameworkName object, Exception:{0}", e.Message); 1557ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1585ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1586ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion); 1811ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1812ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1914ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkVersion); 1915ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkIdentifier); 1916ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkProfile); 1936ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2055ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedFrameworkVersion", version); 2076ErrorUtilities.ThrowArgument("ToolLocationHelper.UnsupportedVisualStudioVersion", version); 2214ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootPath); 2216ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 2500ErrorUtilities.DebugTraceMessage("GatherExtensionSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot); 2521ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found ExtensionsSDK folder '{0}'. ", extensionSdksDirectory.FullName); 2524ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkName directories under '{1}'", sdkNameDirectories.Length, extensionSdksDirectory.FullName); 2530ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkVersion directories under '{1}'", sdkVersionDirectories.Length, sdkNameFolders.FullName); 2536ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Parsed sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2546ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was not already found.", SDKKey); 2554ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "No SDKManifest.xml files could be found at '{0}'. Not adding sdk", pathToSDKManifest); 2559ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was already found, not adding sdk under '{1}'", SDKKey, sdkVersionDirectory.FullName); 2564ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Failed to parse sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2580ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot); 2591ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does not exist. ", rootPathWithIdentifier); 2595ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does exist. Enumerating version folders under it. ", rootPathWithIdentifier); 2602ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Found '{0}' version folders under the identifier path '{1}'. ", versionsInRoot.Count, rootPathWithIdentifier); 2655ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Could not find ExtensionsSDK folder '{0}'. ", sdkFolderPath); 2669ErrorUtilities.VerifyThrowArgumentNull(platformMonikers, "PlatformMonikers"); 2678ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Gathering SDKS from registryRoot '{0}', Hive '{1}', View '{2}'", registryKeyRoot, registryHive, registryView); 2689ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under registryKeyRoot {0}", registryKeyRoot); 2703ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under platformIdentifierKey {0}", platformIdentifierKey); 2766ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", extensionSDKsKey); 2772ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", extensionSDKsKey); 2776ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", extensionSDKsKey); 2788ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", sdkNameKey); 2791ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", sdkNameKey); 2795ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", sdkNameKey); 2805ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting default key for '{0}'", sdkDirectoryKey); 2812ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK installation location = '{0}'", directoryName); 2822ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Adding SDK '{0}' at '{1}' to the list of found sdks.", sdkKey, directoryName); 2827ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No SDKManifest.xml file found at '{0}'.", sdkManifestFileLocation); 2832ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK directory '{0}' does not exist", directoryName); 2837ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK key was previously added. '{0}'", sdkKey); 2842ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Default key is null for '{0}'", sdkDirectoryKey); 2923ErrorUtilities.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", "DiskRoots from Registry '{0}'", string.Join(";", splitRoots)); 2948ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2953ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots"); 2958ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2973ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2977ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2987ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot passed in '{0}'", registryRootLocation ?? string.Empty); 3003ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot to be looked under '{0}'", registryRoot); 3007ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "MSBUILDDISABLEREGISTRYFORSDKLOOKUP is set registry sdk lookup is disabled"); 3018ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(sdk.Path), "SDK path must be set"); 3028ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform identifier directories under '{1}'", platformIdentifiers.Length, platformsRoot); 3034ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform version directories under '{1}'", platformVersions.Length, platformIdentifier.FullName); 3048ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was not already found.", sdkKey); 3057ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "No Platform.xml could be found at '{0}'. Not adding this platform", pathToPlatformManifest); 3062ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was already found, not adding platform under '{1}'", sdkKey, platformVersion.FullName); 3067ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Failed to parse platform version folder '{0}' under '{1}'", platformVersion.Name, platformVersion.FullName); 3075ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", e.Message); 3166ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3170ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message); 3218ErrorUtilities.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message); 3402ErrorUtilities.ThrowInternalErrorUnreachable(); 3663ErrorUtilities.VerifyThrowArgumentLength(targetFrameworkRootDirectory); 3664ErrorUtilities.VerifyThrowArgumentLength(frameworkIdentifier); 3727ErrorUtilities.ThrowInternalErrorUnreachable();
ToolTask.cs (9)
957ErrorUtilities.ThrowInternalError("Unknown tool notification."); 993ErrorUtilities.VerifyThrow(Timeout != System.Threading.Timeout.Infinite, 1095ErrorUtilities.VerifyThrow(dataQueue != null, 1128ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1157ErrorUtilities.VerifyThrow(_toolTimeoutExpired != null, 1177ErrorUtilities.VerifyThrow(_toolExited != null, 1225ErrorUtilities.VerifyThrow(dataQueue != null, 1239ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1573ErrorUtilities.VerifyThrow(nextAction == HostObjectInitializationStatus.UseAlternateToolToExecute,
Microsoft.Build.Utilities.UnitTests (13)
ConversionUtilities.cs (3)
7using Error = Microsoft.Build.Shared.ErrorUtilities; 38Error.ThrowArgument("Shared.CannotConvertStringToBool", parameterValue); 147Error.ThrowInternalError("Cannot numeric evaluate");
ErrorUtilities_Tests.cs (7)
21ErrorUtilities.VerifyThrow(false, "msbuild rules"); 36ErrorUtilities.VerifyThrow(true, "msbuild rules"); 43ErrorUtilities.VerifyThrow(true, "blah"); 50ErrorUtilities.VerifyThrow(true, "{0}", "a"); 57ErrorUtilities.VerifyThrow(true, "{0}{1}", "a", "b"); 64ErrorUtilities.VerifyThrow(true, "{0}{1}{2}", "a", "b", "c"); 71ErrorUtilities.VerifyThrow(true, "{0}{1}{2}{3}", "a", "b", "c", "d");
StringExtensions.cs (3)
18ErrorUtilities.VerifyThrowArgumentNull(aString); 19ErrorUtilities.VerifyThrowArgumentNull(oldValue); 20ErrorUtilities.VerifyThrowArgumentLength(oldValue);