269 references to ErrorUtilities
Microsoft.Build.Utilities.Core (256)
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 '{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)
19ErrorUtilities.VerifyThrowArgumentNull(registryKey); 20ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkVersion);
FileMatcher.cs (8)
243ErrorUtilities.ThrowInternalError("Unexpected filesystem entity type."); 461ErrorUtilities.VerifyThrow(!HasWildcards(path), 527ErrorUtilities.VerifyThrow(entries.Count == 1, 851ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null), 854ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null), 857ErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1193ErrorUtilities.VerifyThrow( 1690ErrorUtilities.ThrowInternalError("Unexpected empty 'input' provided.");
FrameworkLocationHelper.cs (10)
670ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 680ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 705ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 715ErrorUtilities.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion); 1013ErrorUtilities.VerifyThrowArgumentNull(targetFrameworkRootPath); 1014ErrorUtilities.VerifyThrowArgumentNull(frameworkName); 1028ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message); 1042ErrorUtilities.VerifyThrowArgumentOutOfRange(numberOfLevelsToRemove > 0, nameof(numberOfLevelsToRemove)); 1157ErrorUtilities.VerifyThrowArgument(VisualStudioSpecDict.Value.TryGetValue(version, out VisualStudioSpec spec), "FrameworkLocationHelper.UnsupportedVisualStudioVersion", version); 1163ErrorUtilities.VerifyThrowArgument(DotNetFrameworkSpecDict.Value.TryGetValue(version, out DotNetFrameworkSpec spec), "FrameworkLocationHelper.UnsupportedFrameworkVersion", version);
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.");
ReadOnlyEmptyCollection.cs (3)
87ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 95ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 118ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ReadOnlyEmptyDictionary.cs (6)
166ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 175ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 191ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 209ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 217ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 240ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ResourceUtilities.cs (6)
39ErrorUtilities.VerifyThrowInternalNull(message); 428ErrorUtilities.ThrowInternalError( 454ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 462ErrorUtilities.ThrowInternalError(e.Message); 469ErrorUtilities.ThrowInternalError(e.Message); 476ErrorUtilities.ThrowInternalError(e.Message);
SDKManifest.cs (1)
112ErrorUtilities.VerifyThrowArgumentLength(pathToSdk);
TargetPlatformSDK.cs (2)
45ErrorUtilities.VerifyThrowArgumentNull(targetPlatformIdentifier); 46ErrorUtilities.VerifyThrowArgumentNull(targetPlatformVersion);
TaskItem.cs (11)
104ErrorUtilities.VerifyThrowArgumentNull(itemSpec); 123ErrorUtilities.VerifyThrowArgumentNull(itemMetadata); 150ErrorUtilities.VerifyThrowArgumentNull(sourceItem); 186ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ItemSpec)); 273ErrorUtilities.VerifyThrowArgumentNull(metadataName); 274ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsItemSpecModifier(metadataName), 306ErrorUtilities.VerifyThrowArgumentLength(metadataName); 310ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName), 340ErrorUtilities.VerifyThrowArgumentNull(destinationItem); 490ErrorUtilities.VerifyThrowArgumentNull(taskItemToCast); 503ErrorUtilities.VerifyThrowArgumentNull(metadataName);
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, 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); 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:'{0}' and TargetPlatformVersion: '{1}'", targetPlatformIdentifier, 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 '{0}' did not exist.", propsFileLocation); 863ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Could not find root SDK location for SDKI = '{0}', SDKV = '{1}'", sdkIdentifier, sdkVersion); 868ErrorUtilities.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message); 972ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find root SDK for SDKI = '{0}', SDKV = '{1}'", targetSdkIdentifier, targetSdkVersion); 993ErrorUtilities.DebugTraceMessage("GetExtensionSdkReferences", "Could not find matching extension SDK = '{0}'", extensionSdkMoniker); 1028ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1029ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1043ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Target platform location '{0}' did not exist", winmdLocation); 1049ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Could not find root SDK location for TPI = '{0}', TPV = '{1}'", targetPlatformIdentifier, targetPlatformVersion); 1058ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, winmdLocation); 1065ErrorUtilities.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message); 1084ErrorUtilities.VerifyThrowArgumentLength(sdkIdentifier); 1085ErrorUtilities.VerifyThrowArgumentLength(sdkVersion); 1086ErrorUtilities.VerifyThrowArgumentLength(targetPlatformIdentifier); 1087ErrorUtilities.VerifyThrowArgumentLength(targetPlatformVersion); 1136ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Gathering contract references for contract with name '{0}' and version '{1}", contract.Name, contract.Version); 1145ErrorUtilities.DebugTraceMessage("GetApiContractReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, contractPath); 1165ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Target platform location '{0}' did not exist or did not contain Platform.xml", platformManifestLocation); 1170ErrorUtilities.DebugTraceMessage("GetPlatformManifest", "Could not find root SDK for '{0}'", platformKey); 1185ErrorUtilities.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", 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:{0}", 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 '{0}'does not exist, skipping it", diskRoot); 2527ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found ExtensionsSDK folder '{0}'. ", extensionSdksDirectory.FullName); 2530ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkName directories under '{1}'", sdkNameDirectories.Length, extensionSdksDirectory.FullName); 2536ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkVersion directories under '{1}'", sdkVersionDirectories.Length, sdkNameFolders.FullName); 2542ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Parsed sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2552ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was not already found.", SDKKey); 2560ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "No SDKManifest.xml files could be found at '{0}'. Not adding sdk", pathToSDKManifest); 2565ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was already found, not adding sdk under '{1}'", SDKKey, sdkVersionDirectory.FullName); 2570ErrorUtilities.DebugTraceMessage("GatherExtensionSDKs", "Failed to parse sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName); 2586ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot); 2597ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does not exist. ", rootPathWithIdentifier); 2601ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does exist. Enumerating version folders under it. ", rootPathWithIdentifier); 2608ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Found '{0}' version folders under the identifier path '{1}'. ", versionsInRoot.Count, rootPathWithIdentifier); 2661ErrorUtilities.DebugTraceMessage("GatherSDKListFromDirectory", "Could not find ExtensionsSDK folder '{0}'. ", sdkFolderPath); 2675ErrorUtilities.VerifyThrowArgumentNull(platformMonikers, "PlatformMonikers"); 2684ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Gathering SDKS from registryRoot '{0}', Hive '{1}', View '{2}'", registryKeyRoot, registryHive, registryView); 2695ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under registryKeyRoot {0}", registryKeyRoot); 2709ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under platformIdentifierKey {0}", platformIdentifierKey); 2772ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", extensionSDKsKey); 2778ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", extensionSDKsKey); 2782ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", extensionSDKsKey); 2794ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", sdkNameKey); 2797ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", sdkNameKey); 2801ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", sdkNameKey); 2811ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting default key for '{0}'", sdkDirectoryKey); 2818ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK installation location = '{0}'", directoryName); 2828ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Adding SDK '{0}' at '{1}' to the list of found sdks.", sdkKey, directoryName); 2833ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No SDKManifest.xml file found at '{0}'.", sdkManifestFileLocation); 2838ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK directory '{0}' does not exist", directoryName); 2843ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK key was previously added. '{0}'", sdkKey); 2848ErrorUtilities.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Default key is null for '{0}'", sdkDirectoryKey); 2929ErrorUtilities.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", "DiskRoots from Registry '{0}'", string.Join(";", splitRoots)); 2954ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2959ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots"); 2964ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2979ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots)); 2983ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2993ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot passed in '{0}'", registryRootLocation ?? string.Empty); 3009ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot to be looked under '{0}'", 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 '{0}' platform identifier directories under '{1}'", platformIdentifiers.Length, platformsRoot); 3040ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform version directories under '{1}'", platformVersions.Length, platformIdentifier.FullName); 3054ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was not already found.", sdkKey); 3063ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "No Platform.xml could be found at '{0}'. Not adding this platform", pathToPlatformManifest); 3068ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was already found, not adding platform under '{1}'", sdkKey, platformVersion.FullName); 3073ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Failed to parse platform version folder '{0}' under '{1}'", platformVersion.Name, platformVersion.FullName); 3081ErrorUtilities.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", 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)
974ErrorUtilities.ThrowInternalError("Unknown tool notification."); 1010ErrorUtilities.VerifyThrow(Timeout != System.Threading.Timeout.Infinite, 1112ErrorUtilities.VerifyThrow(dataQueue != null, 1145ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1174ErrorUtilities.VerifyThrow(_toolTimeoutExpired != null, 1194ErrorUtilities.VerifyThrow(_toolExited != null, 1242ErrorUtilities.VerifyThrow(dataQueue != null, 1256ErrorUtilities.VerifyThrow(dataAvailableSignal != null, 1591ErrorUtilities.VerifyThrow(nextAction == HostObjectInitializationStatus.UseAlternateToolToExecute,
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);