289 references to ErrorUtilities
Microsoft.Build.Utilities.Core (276)
AssemblyFolders\AssemblyFoldersExInfo.cs (3)
24
ErrorUtilities
.VerifyThrowArgumentNull(registryKey);
25
ErrorUtilities
.VerifyThrowArgumentNull(directoryPath);
26
ErrorUtilities
.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFolders\AssemblyFoldersFromConfigInfo.cs (2)
26
ErrorUtilities
.VerifyThrowArgumentNull(directoryPath);
27
ErrorUtilities
.VerifyThrowArgumentNull(targetFrameworkVersion);
AssemblyFoldersFromConfig.cs (2)
32
ErrorUtilities
.VerifyThrowArgumentNull(configFile);
33
ErrorUtilities
.VerifyThrowArgumentNull(targetRuntimeVersion);
AssemblyResources.cs (3)
28
ErrorUtilities
.VerifyThrow(resource != null, "Missing resource '{0}'", name);
56
ErrorUtilities
.VerifyThrowArgumentNull(unformatted);
75
ErrorUtilities
.VerifyThrowArgumentNull(resourceName);
CommandLineBuilder.cs (18)
250
ErrorUtilities
.VerifyThrowArgumentNull(buffer);
402
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
437
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
481
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
498
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
520
ErrorUtilities
.VerifyThrowArgument(
527
ErrorUtilities
.VerifyThrowArgument(
547
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
568
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
569
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
600
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
601
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
638
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
659
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
679
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
680
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
710
ErrorUtilities
.VerifyThrowArgumentNull(switchName);
711
ErrorUtilities
.VerifyThrowArgumentNull(delimiter);
EventArgsFormatting.cs (5)
72
ErrorUtilities
.VerifyThrowArgumentNull(e);
89
ErrorUtilities
.VerifyThrowArgumentNull(e);
105
ErrorUtilities
.VerifyThrowArgumentNull(e);
122
ErrorUtilities
.VerifyThrowArgumentNull(e);
151
ErrorUtilities
.VerifyThrowArgumentNull(e);
ExtensionFoldersRegistryKey.cs (2)
20
ErrorUtilities
.VerifyThrowArgumentNull(registryKey);
21
ErrorUtilities
.VerifyThrowArgumentNull(targetFrameworkVersion);
FileMatcher.cs (8)
231
ErrorUtilities
.ThrowInternalError("Unexpected filesystem entity type.");
449
ErrorUtilities
.VerifyThrow(!HasWildcards(path),
519
ErrorUtilities
.VerifyThrow(entries.Count == 1,
844
ErrorUtilities
.VerifyThrow((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null),
847
ErrorUtilities
.VerifyThrow((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null),
850
ErrorUtilities
.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory.");
1186
ErrorUtilities
.VerifyThrow(
1678
ErrorUtilities
.ThrowInternalError("Unexpected empty 'input' provided.");
FileUtilities.cs (10)
191
ErrorUtilities
.ThrowArgument("DebugPathTooLong", directory);
392
ErrorUtilities
.VerifyThrowInternalLength(path, nameof(path));
393
ErrorUtilities
.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
464
ErrorUtilities
.VerifyThrowArgumentLength(path);
1135
ErrorUtilities
.VerifyThrowArgumentNull(basePath);
1136
ErrorUtilities
.VerifyThrowArgumentLength(path);
1144
ErrorUtilities
.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
1273
ErrorUtilities
.VerifyThrowArgumentNull(root);
1274
ErrorUtilities
.VerifyThrowArgumentNull(paths);
1484
ErrorUtilities
.ThrowArgument("InvalidGetPathOfFileAboveParameter", file);
FrameworkLocationHelper.cs (10)
635
ErrorUtilities
.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion);
645
ErrorUtilities
.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion);
670
ErrorUtilities
.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion);
680
ErrorUtilities
.VerifyThrowArgument(visualStudioSpec.SupportedDotNetFrameworkVersions.Contains(dotNetFrameworkVersion), "FrameworkLocationHelper.UnsupportedFrameworkVersion", dotNetFrameworkVersion);
975
ErrorUtilities
.VerifyThrowArgumentNull(targetFrameworkRootPath);
976
ErrorUtilities
.VerifyThrowArgumentNull(frameworkName);
990
ErrorUtilities
.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message);
1004
ErrorUtilities
.VerifyThrowArgumentOutOfRange(numberOfLevelsToRemove > 0, nameof(numberOfLevelsToRemove));
1119
ErrorUtilities
.VerifyThrowArgument(VisualStudioSpecDict.Value.TryGetValue(version, out VisualStudioSpec spec), "FrameworkLocationHelper.UnsupportedVisualStudioVersion", version);
1125
ErrorUtilities
.VerifyThrowArgument(DotNetFrameworkSpecDict.Value.TryGetValue(version, out DotNetFrameworkSpec spec), "FrameworkLocationHelper.UnsupportedFrameworkVersion", version);
Modifiers.cs (8)
385
ErrorUtilities
.VerifyThrow(itemSpec != null, "Need item-spec to modify.");
386
ErrorUtilities
.VerifyThrow(modifier != null, "Need modifier to apply to item-spec.");
417
ErrorUtilities
.VerifyThrow(FileUtilitiesRegex.StartsWithUncPattern(modifiedItemSpec),
478
ErrorUtilities
.VerifyThrow((modifiedItemSpec.Length > length) && IsSlash(modifiedItemSpec[length]),
486
ErrorUtilities
.VerifyThrow(!string.IsNullOrEmpty(modifiedItemSpec) && IsSlash(modifiedItemSpec[0]),
588
ErrorUtilities
.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier);
597
ErrorUtilities
.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier);
602
ErrorUtilities
.ThrowInvalidOperation("Shared.InvalidFilespecForTransform", modifier, itemSpec, e.Message);
MSBuildNameIgnoreCaseComparer.cs (2)
49
ErrorUtilities
.ThrowInternalError("Invalid lengthToCompare '{0}' {1} {2}", constrainedString, start, lengthToCompare);
54
ErrorUtilities
.ThrowInternalError("Invalid start '{0}' {1} {2}", constrainedString, start, lengthToCompare);
PlatformManifest.cs (1)
31
ErrorUtilities
.VerifyThrowArgumentLength(pathToManifest);
PrintLineDebugger.cs (4)
30
ErrorUtilities
.VerifyThrowInternalNull(propertyInfo);
77
ErrorUtilities
.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first");
99
ErrorUtilities
.ThrowInternalError("Cannot unset an already null writer");
161
ErrorUtilities
.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ReadOnlyEmptyCollection.cs (3)
87
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
95
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
118
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ReadOnlyEmptyDictionary.cs (6)
176
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
185
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
201
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
219
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
227
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
250
ErrorUtilities
.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ResourceUtilities.cs (6)
42
ErrorUtilities
.VerifyThrowInternalNull(message);
438
ErrorUtilities
.ThrowInternalError(
464
ErrorUtilities
.ThrowInternalError("The resource string \"" + resourceName + "\" was not found.");
472
ErrorUtilities
.ThrowInternalError(e.Message);
479
ErrorUtilities
.ThrowInternalError(e.Message);
486
ErrorUtilities
.ThrowInternalError(e.Message);
SDKManifest.cs (1)
111
ErrorUtilities
.VerifyThrowArgumentLength(pathToSdk);
TargetPlatformSDK.cs (2)
45
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformIdentifier);
46
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
TaskItem.cs (11)
100
ErrorUtilities
.VerifyThrowArgumentNull(itemSpec);
119
ErrorUtilities
.VerifyThrowArgumentNull(itemMetadata);
144
ErrorUtilities
.VerifyThrowArgumentNull(sourceItem);
180
ErrorUtilities
.VerifyThrowArgumentNull(value, nameof(ItemSpec));
263
ErrorUtilities
.VerifyThrowArgumentNull(metadataName);
264
ErrorUtilities
.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.IsItemSpecModifier(metadataName),
282
ErrorUtilities
.VerifyThrowArgumentLength(metadataName);
286
ErrorUtilities
.VerifyThrowArgument(!FileUtilities.ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName),
316
ErrorUtilities
.VerifyThrowArgumentNull(destinationItem);
439
ErrorUtilities
.VerifyThrowArgumentNull(taskItemToCast);
452
ErrorUtilities
.VerifyThrowArgumentNull(metadataName);
TaskLoggingHelper.cs (37)
52
ErrorUtilities
.VerifyThrowArgumentNull(taskInstance);
62
ErrorUtilities
.VerifyThrowArgumentNull(buildEngine);
63
ErrorUtilities
.VerifyThrowArgumentLength(taskName);
181
ErrorUtilities
.VerifyThrowArgumentNull(message);
205
ErrorUtilities
.VerifyThrowArgumentNull(resourceName);
206
ErrorUtilities
.VerifyThrowInvalidOperation(TaskResources != null, "Shared.TaskResourcesNotRegistered", TaskName);
210
ErrorUtilities
.VerifyThrowArgument(resourceString != null, "Shared.TaskResourceNotFound", resourceName, TaskName);
225
ErrorUtilities
.VerifyThrowArgumentNull(unformatted);
294
ErrorUtilities
.VerifyThrowArgumentNull(message);
321
ErrorUtilities
.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);
330
ErrorUtilities
.VerifyThrow(errorCode == null, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message);
364
ErrorUtilities
.VerifyThrowArgumentNull(message);
374
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
426
ErrorUtilities
.VerifyThrowArgumentNull(message);
431
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
490
ErrorUtilities
.VerifyThrowArgumentNull(messageResourceName);
503
ErrorUtilities
.VerifyThrow(errorCode == null, errorCode, FormatResourceString(messageResourceName, messageArgs));
514
ErrorUtilities
.VerifyThrowArgumentNull(filePath);
515
ErrorUtilities
.VerifyThrowArgumentNull(content);
605
ErrorUtilities
.VerifyThrowArgumentNull(commandLine);
619
ErrorUtilities
.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);
701
ErrorUtilities
.VerifyThrowArgumentNull(message);
706
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
778
ErrorUtilities
.VerifyThrowArgumentNull(messageResourceName);
795
ErrorUtilities
.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
861
ErrorUtilities
.VerifyThrowArgumentNull(messageResourceName);
929
ErrorUtilities
.VerifyThrowArgumentNull(exception);
1052
ErrorUtilities
.VerifyThrowArgumentNull(message);
1057
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
1148
ErrorUtilities
.VerifyThrowArgumentNull(messageResourceName);
1163
ErrorUtilities
.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
1229
ErrorUtilities
.VerifyThrowArgumentNull(messageResourceName);
1281
ErrorUtilities
.VerifyThrowArgumentNull(exception);
1323
ErrorUtilities
.VerifyThrowArgumentNull(fileName);
1350
ErrorUtilities
.VerifyThrowArgumentNull(stream);
1378
ErrorUtilities
.VerifyThrowArgumentNull(lineOfText);
1436
ErrorUtilities
.ThrowInternalError("Impossible canonical part.");
TempFileUtilities.cs (2)
162
ErrorUtilities
.VerifyThrowArgumentLengthIfNotNull(directory, nameof(directory));
188
ErrorUtilities
.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ToolLocationHelper.cs (121)
325
ErrorUtilities
.VerifyThrowArgumentLength(registryRoot);
326
ErrorUtilities
.VerifyThrowArgumentLength(registryKeySuffix);
327
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkVersion);
357
ErrorUtilities
.VerifyThrowArgumentLength(configFile);
358
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkVersion);
463
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
464
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
468
ErrorUtilities
.DebugTraceMessage("GetPlatformExtensionSDKLocations", "Calling with TargetPlatformIdentifier:'{0}' and TargetPlatformVersion: '{1}'", targetPlatformIdentifier, targetPlatformVersionString);
521
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
522
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
523
ErrorUtilities
.VerifyThrowArgumentLength(sdkMoniker);
586
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
653
ErrorUtilities
.VerifyThrowArgumentLength(sdkRoot);
654
ErrorUtilities
.VerifyThrowArgumentLength(targetConfiguration);
655
ErrorUtilities
.VerifyThrowArgumentLength(targetArchitecture);
717
ErrorUtilities
.VerifyThrowArgumentLength(sdkRoot);
718
ErrorUtilities
.VerifyThrowArgumentLength(targetConfiguration);
719
ErrorUtilities
.VerifyThrowArgumentLength(targetArchitecture);
747
ErrorUtilities
.VerifyThrowArgumentLength(sdkRoot);
748
ErrorUtilities
.VerifyThrowArgumentLength(targetConfiguration);
749
ErrorUtilities
.VerifyThrowArgumentLength(targetArchitecture);
824
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
825
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformVersion);
853
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Target platform props file location '{0}' did not exist.", propsFileLocation);
858
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Could not find root SDK location for SDKI = '{0}', SDKV = '{1}'", sdkIdentifier, sdkVersion);
863
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", "Encountered exception trying to get the SDK props file Location : {0}", e.Message);
967
ErrorUtilities
.DebugTraceMessage("GetExtensionSdkReferences", "Could not find root SDK for SDKI = '{0}', SDKV = '{1}'", targetSdkIdentifier, targetSdkVersion);
988
ErrorUtilities
.DebugTraceMessage("GetExtensionSdkReferences", "Could not find matching extension SDK = '{0}'", extensionSdkMoniker);
1023
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
1024
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformVersion);
1038
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Target platform location '{0}' did not exist", winmdLocation);
1044
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Could not find root SDK location for TPI = '{0}', TPV = '{1}'", targetPlatformIdentifier, targetPlatformVersion);
1053
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, winmdLocation);
1060
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", "Encountered exception trying to gather the platform references: {0}", e.Message);
1079
ErrorUtilities
.VerifyThrowArgumentLength(sdkIdentifier);
1080
ErrorUtilities
.VerifyThrowArgumentLength(sdkVersion);
1081
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
1082
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformVersion);
1131
ErrorUtilities
.DebugTraceMessage("GetApiContractReferences", "Gathering contract references for contract with name '{0}' and version '{1}", contract.Name, contract.Version);
1140
ErrorUtilities
.DebugTraceMessage("GetApiContractReferences", "Found {0} contract winmds in '{1}'", winmdPaths.Length, contractPath);
1160
ErrorUtilities
.DebugTraceMessage("GetPlatformManifest", "Target platform location '{0}' did not exist or did not contain Platform.xml", platformManifestLocation);
1165
ErrorUtilities
.DebugTraceMessage("GetPlatformManifest", "Could not find root SDK for '{0}'", platformKey);
1180
ErrorUtilities
.DebugTraceMessage("GetValueUsingMatchingSDKManifest", "Encountered exception trying to check if SDK is versioned: {0}", e.Message);
1206
ErrorUtilities
.VerifyThrowArgumentLength(sdkIdentifier);
1207
ErrorUtilities
.VerifyThrowArgumentLength(sdkVersion);
1222
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
1223
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformVersion);
1285
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
1334
ErrorUtilities
.VerifyThrowArgumentNull(sdkIdentifier);
1335
ErrorUtilities
.VerifyThrowArgumentNull(sdkVersion);
1373
ErrorUtilities
.VerifyThrowArgumentNull(sdkIdentifier);
1374
ErrorUtilities
.VerifyThrowArgumentNull(sdkVersion);
1537
ErrorUtilities
.DebugTraceMessage("TryParsePlatformVersion", "Cannot create FrameworkName object, Exception:{0}", e.Message);
1557
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
1585
ErrorUtilities
.VerifyThrowArgumentLength(targetPlatformIdentifier);
1586
ErrorUtilities
.VerifyThrowArgumentNull(targetPlatformVersion);
1811
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkIdentifier);
1812
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkVersion);
1914
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkVersion);
1915
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkIdentifier);
1916
ErrorUtilities
.VerifyThrowArgumentNull(targetFrameworkProfile);
1936
ErrorUtilities
.VerifyThrowArgumentNull(frameworkName);
2055
ErrorUtilities
.ThrowArgument("ToolLocationHelper.UnsupportedFrameworkVersion", version);
2076
ErrorUtilities
.ThrowArgument("ToolLocationHelper.UnsupportedVisualStudioVersion", version);
2214
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkRootPath);
2216
ErrorUtilities
.VerifyThrowArgumentNull(frameworkName);
2500
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot);
2521
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "Found ExtensionsSDK folder '{0}'. ", extensionSdksDirectory.FullName);
2524
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkName directories under '{1}'", sdkNameDirectories.Length, extensionSdksDirectory.FullName);
2530
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "Found '{0}' sdkVersion directories under '{1}'", sdkVersionDirectories.Length, sdkNameFolders.FullName);
2536
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "Parsed sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName);
2546
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was not already found.", SDKKey);
2554
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "No SDKManifest.xml files could be found at '{0}'. Not adding sdk", pathToSDKManifest);
2559
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "SDKKey '{0}' was already found, not adding sdk under '{1}'", SDKKey, sdkVersionDirectory.FullName);
2564
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", "Failed to parse sdk version folder '{0}' under '{1}'", sdkVersionDirectory.Name, sdkVersionDirectory.FullName);
2580
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", "DiskRoot '{0}'does not exist, skipping it", diskRoot);
2591
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does not exist. ", rootPathWithIdentifier);
2595
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", "Disk root with Identifier: '{0}' does exist. Enumerating version folders under it. ", rootPathWithIdentifier);
2602
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", "Found '{0}' version folders under the identifier path '{1}'. ", versionsInRoot.Count, rootPathWithIdentifier);
2655
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", "Could not find ExtensionsSDK folder '{0}'. ", sdkFolderPath);
2669
ErrorUtilities
.VerifyThrowArgumentNull(platformMonikers, "PlatformMonikers");
2678
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Gathering SDKS from registryRoot '{0}', Hive '{1}', View '{2}'", registryKeyRoot, registryHive, registryView);
2689
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under registryKeyRoot {0}", registryKeyRoot);
2703
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No sub keys found under platformIdentifierKey {0}", platformIdentifierKey);
2766
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", extensionSDKsKey);
2772
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", extensionSDKsKey);
2776
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", extensionSDKsKey);
2788
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting subkeys of '{0}'", sdkNameKey);
2791
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Could not find subkeys of '{0}'", sdkNameKey);
2795
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Found subkeys of '{0}'", sdkNameKey);
2805
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Getting default key for '{0}'", sdkDirectoryKey);
2812
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK installation location = '{0}'", directoryName);
2822
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Adding SDK '{0}' at '{1}' to the list of found sdks.", sdkKey, directoryName);
2827
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "No SDKManifest.xml file found at '{0}'.", sdkManifestFileLocation);
2832
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK directory '{0}' does not exist", directoryName);
2837
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "SDK key was previously added. '{0}'", sdkKey);
2842
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", "Default key is null for '{0}'", sdkDirectoryKey);
2923
ErrorUtilities
.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", "DiskRoots from Registry '{0}'", string.Join(";", splitRoots));
2948
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots));
2953
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots");
2958
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray()));
2973
ErrorUtilities
.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Passed in DiskRoots '{0}'", string.Join(";", diskRoots));
2977
ErrorUtilities
.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray()));
2987
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot passed in '{0}'", registryRootLocation ?? string.Empty);
3003
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot to be looked under '{0}'", registryRoot);
3007
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "MSBUILDDISABLEREGISTRYFORSDKLOOKUP is set registry sdk lookup is disabled");
3018
ErrorUtilities
.VerifyThrow(!string.IsNullOrEmpty(sdk.Path), "SDK path must be set");
3028
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform identifier directories under '{1}'", platformIdentifiers.Length, platformsRoot);
3034
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "Found '{0}' platform version directories under '{1}'", platformVersions.Length, platformIdentifier.FullName);
3048
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was not already found.", sdkKey);
3057
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "No Platform.xml could be found at '{0}'. Not adding this platform", pathToPlatformManifest);
3062
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "SDKKey '{0}' was already found, not adding platform under '{1}'", sdkKey, platformVersion.FullName);
3067
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "Failed to parse platform version folder '{0}' under '{1}'", platformVersion.Name, platformVersion.FullName);
3075
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", "Encountered exception trying to gather platform-specific data: {0}", e.Message);
3166
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3170
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3218
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message);
3402
ErrorUtilities
.ThrowInternalErrorUnreachable();
3663
ErrorUtilities
.VerifyThrowArgumentLength(targetFrameworkRootDirectory);
3664
ErrorUtilities
.VerifyThrowArgumentLength(frameworkIdentifier);
3727
ErrorUtilities
.ThrowInternalErrorUnreachable();
ToolTask.cs (9)
957
ErrorUtilities
.ThrowInternalError("Unknown tool notification.");
993
ErrorUtilities
.VerifyThrow(Timeout != System.Threading.Timeout.Infinite,
1095
ErrorUtilities
.VerifyThrow(dataQueue != null,
1128
ErrorUtilities
.VerifyThrow(dataAvailableSignal != null,
1157
ErrorUtilities
.VerifyThrow(_toolTimeoutExpired != null,
1177
ErrorUtilities
.VerifyThrow(_toolExited != null,
1225
ErrorUtilities
.VerifyThrow(dataQueue != null,
1239
ErrorUtilities
.VerifyThrow(dataAvailableSignal != null,
1573
ErrorUtilities
.VerifyThrow(nextAction == HostObjectInitializationStatus.UseAlternateToolToExecute,
Microsoft.Build.Utilities.UnitTests (13)
ConversionUtilities.cs (3)
7
using Error = Microsoft.Build.Shared.
ErrorUtilities
;
38
Error
.ThrowArgument("Shared.CannotConvertStringToBool", parameterValue);
147
Error
.ThrowInternalError("Cannot numeric evaluate");
ErrorUtilities_Tests.cs (7)
21
ErrorUtilities
.VerifyThrow(false, "msbuild rules");
36
ErrorUtilities
.VerifyThrow(true, "msbuild rules");
43
ErrorUtilities
.VerifyThrow(true, "blah");
50
ErrorUtilities
.VerifyThrow(true, "{0}", "a");
57
ErrorUtilities
.VerifyThrow(true, "{0}{1}", "a", "b");
64
ErrorUtilities
.VerifyThrow(true, "{0}{1}{2}", "a", "b", "c");
71
ErrorUtilities
.VerifyThrow(true, "{0}{1}{2}{3}", "a", "b", "c", "d");
StringExtensions.cs (3)
18
ErrorUtilities
.VerifyThrowArgumentNull(aString);
19
ErrorUtilities
.VerifyThrowArgumentNull(oldValue);
20
ErrorUtilities
.VerifyThrowArgumentLength(oldValue);