79 references to ErrorUtilities
Microsoft.Build.Utilities.Core (79)
CommandLineBuilder.cs (2)
525
ErrorUtilities
.VerifyThrowArgument(
532
ErrorUtilities
.VerifyThrowArgument(
src\msbuild\src\Shared\TaskLoggingHelper.cs (8)
206
ErrorUtilities
.VerifyThrowInvalidOperation(TaskResources != null, "Shared.TaskResourcesNotRegistered", TaskName);
210
ErrorUtilities
.VerifyThrowArgument(resourceString != null, "Shared.TaskResourceNotFound", resourceName, TaskName);
321
ErrorUtilities
.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);
374
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
431
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
619
ErrorUtilities
.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);
706
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
1028
ErrorUtilities
.VerifyThrowInvalidOperation(BuildEngine != null, "LoggingBeforeTaskInitialization", message);
TaskItem.cs (2)
277
ErrorUtilities
.VerifyThrowArgument(!ItemSpecModifiers.IsItemSpecModifier(metadataName),
313
ErrorUtilities
.VerifyThrowArgument(!ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName),
ToolLocationHelper.cs (67)
473
ErrorUtilities
.DebugTraceMessage("GetPlatformExtensionSDKLocations", $"Calling with TargetPlatformIdentifier:'{targetPlatformIdentifier}' and TargetPlatformVersion: '{targetPlatformVersionString}'");
858
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Target platform props file location '{propsFileLocation}' did not exist.");
863
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Could not find root SDK location for SDKI = '{sdkIdentifier}', SDKV = '{sdkVersion}'");
868
ErrorUtilities
.DebugTraceMessage("GetPlatformSDKPropsFileLocation", $"Encountered exception trying to get the SDK props file Location : {e.Message}");
972
ErrorUtilities
.DebugTraceMessage("GetExtensionSdkReferences", $"Could not find root SDK for SDKI = '{targetSdkIdentifier}', SDKV = '{targetSdkVersion}'");
993
ErrorUtilities
.DebugTraceMessage("GetExtensionSdkReferences", $"Could not find matching extension SDK = '{extensionSdkMoniker}'");
1043
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Target platform location '{winmdLocation}' did not exist");
1049
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Could not find root SDK location for TPI = '{targetPlatformIdentifier}', TPV = '{targetPlatformVersion}'");
1058
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Found {winmdPaths.Length} contract winmds in '{winmdLocation}'");
1065
ErrorUtilities
.DebugTraceMessage("GetLegacyTargetPlatformReferences", $"Encountered exception trying to gather the platform references: {e.Message}");
1136
ErrorUtilities
.DebugTraceMessage("GetApiContractReferences", $"Gathering contract references for contract with name '{contract.Name}' and version '{contract.Version}'");
1145
ErrorUtilities
.DebugTraceMessage("GetApiContractReferences", $"Found {winmdPaths.Length} contract winmds in '{contractPath}'");
1165
ErrorUtilities
.DebugTraceMessage("GetPlatformManifest", $"Target platform location '{platformManifestLocation}' did not exist or did not contain Platform.xml");
1170
ErrorUtilities
.DebugTraceMessage("GetPlatformManifest", $"Could not find root SDK for '{platformKey}'");
1185
ErrorUtilities
.DebugTraceMessage("GetValueUsingMatchingSDKManifest", $"Encountered exception trying to check if SDK is versioned: {e.Message}");
1542
ErrorUtilities
.DebugTraceMessage("TryParsePlatformVersion", $"Cannot create FrameworkName object, Exception:{e.Message}");
2060
ErrorUtilities
.ThrowArgument("ToolLocationHelper.UnsupportedFrameworkVersion", version);
2082
ErrorUtilities
.ThrowArgument("ToolLocationHelper.UnsupportedVisualStudioVersion", version);
2506
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKListFromDirectory", $"DiskRoot '{diskRoot}' does not exist, skipping it");
2527
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"Found ExtensionsSDK folder '{extensionSdksDirectory.FullName}'. ");
2530
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"Found '{sdkNameDirectories.Length}' sdkName directories under '{extensionSdksDirectory.FullName}'");
2536
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"Found '{sdkVersionDirectories.Length}' sdkVersion directories under '{sdkNameFolders.FullName}'");
2542
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"Parsed sdk version folder '{sdkVersionDirectory.Name}' under '{sdkVersionDirectory.FullName}'");
2552
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"SDKKey '{SDKKey}' was not already found.");
2560
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"No SDKManifest.xml files could be found at '{pathToSDKManifest}'. Not adding sdk");
2565
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"SDKKey '{SDKKey}' was already found, not adding sdk under '{sdkVersionDirectory.FullName}'");
2570
ErrorUtilities
.DebugTraceMessage("GatherExtensionSDKs", $"Failed to parse sdk version folder '{sdkVersionDirectory.Name}' under '{sdkVersionDirectory.FullName}'");
2586
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", $"DiskRoot '{diskRoot}' does not exist, skipping it");
2597
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", $"Disk root with Identifier: '{rootPathWithIdentifier}' does not exist. ");
2601
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", $"Disk root with Identifier: '{rootPathWithIdentifier}' does exist. Enumerating version folders under it. ");
2608
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", $"Found '{versionsInRoot.Count}' version folders under the identifier path '{rootPathWithIdentifier}'.");
2661
ErrorUtilities
.DebugTraceMessage("GatherSDKListFromDirectory", $"Could not find ExtensionsSDK folder '{sdkFolderPath}'. ");
2684
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Gathering SDKS from registryRoot '{registryKeyRoot}', Hive '{registryHive}', View '{registryView}'");
2695
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No sub keys found under registryKeyRoot {registryKeyRoot}");
2709
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No sub keys found under platformIdentifierKey {platformIdentifierKey}");
2772
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting subkeys of '{extensionSDKsKey}'");
2778
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Could not find subkeys of '{extensionSDKsKey}'");
2782
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Found subkeys of '{extensionSDKsKey}'");
2794
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting subkeys of '{sdkNameKey}'");
2797
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Could not find subkeys of '{sdkNameKey}'");
2801
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Found subkeys of '{sdkNameKey}'");
2811
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Getting default key for '{sdkDirectoryKey}'");
2818
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK installation location = '{directoryName}'");
2828
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Adding SDK '{sdkKey}' at '{directoryName}' to the list of found sdks.");
2833
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"No SDKManifest.xml file found at '{sdkManifestFileLocation}'.");
2838
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK directory '{directoryName}' does not exist");
2843
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"SDK key was previously added. '{sdkKey}'");
2848
ErrorUtilities
.DebugTraceMessage("GatherSDKsFromRegistryImpl", $"Default key is null for '{sdkDirectoryKey}'");
2929
ErrorUtilities
.DebugTraceMessage("ExtractSdkDiskRootsFromEnvironment", $"DiskRoots from Registry '{string.Join(";", splitRoots)}'");
2954
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", $"Passed in DiskRoots '{string.Join(";", diskRoots)}'");
2959
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Getting default disk roots");
2964
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", $"Diskroots being used '{string.Join(";", sdkDiskRoots.ToArray())}'");
2979
ErrorUtilities
.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", $"Passed in DiskRoots '{string.Join(";", diskRoots)}'");
2983
ErrorUtilities
.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", $"Diskroots being used '{string.Join(";", sdkDiskRoots.ToArray())}'");
2993
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", $"RegistryRoot passed in '{registryRootLocation ?? string.Empty}'");
3009
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", $"RegistryRoot to be looked under '{registryRoot}'");
3013
ErrorUtilities
.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "MSBUILDDISABLEREGISTRYFORSDKLOOKUP is set registry sdk lookup is disabled");
3034
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"Found '{platformIdentifiers.Length}' platform identifier directories under '{platformsRoot}'");
3040
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"Found '{platformVersions.Length}' platform version directories under '{platformIdentifier.FullName}'");
3054
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"SDKKey '{sdkKey}' was not already found.");
3063
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"No Platform.xml could be found at '{pathToPlatformManifest}'. Not adding this platform");
3068
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"SDKKey '{sdkKey}' was already found, not adding platform under '{platformVersion.FullName}'");
3073
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"Failed to parse platform version folder '{platformVersion.Name}' under '{platformVersion.FullName}'");
3081
ErrorUtilities
.DebugTraceMessage("GatherPlatformsForSdk", $"Encountered exception trying to gather platform-specific data: {e.Message}");
3172
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3176
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.InvalidRedistFile", redistFilePath, ex.Message);
3224
ErrorUtilities
.ThrowInvalidOperation("ToolsLocationHelper.CouldNotCreateChain", path, pathToReturn, e.Message);