231 references to ErrorUtilities
Microsoft.Build.Tasks.Core (222)
AppConfig\BindingRedirect.cs (4)
40ErrorUtilities.VerifyThrowArgument(!String.IsNullOrEmpty(oldVersion), "AppConfig.BindingRedirectMissingOldVersion"); 65ErrorUtilities.ThrowArgument(e, "AppConfig.InvalidOldVersionAttribute", e.Message); 71ErrorUtilities.VerifyThrowArgument(!String.IsNullOrEmpty(newVersionAttribute), "AppConfig.BindingRedirectMissingNewVersion"); 79ErrorUtilities.ThrowArgument(e, "AppConfig.InvalidNewVersionAttribute", e.Message);
AppConfig\DependentAssembly.cs (1)
99ErrorUtilities.ThrowArgument(e, "AppConfig.InvalidAssemblyIdentityFields");
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130ErrorUtilities.VerifyThrow(FileSystems.Default.FileExists(_assemblyFolderConfigFile),
AssemblyDependency\AssemblyInformation.cs (1)
71ErrorUtilities.VerifyThrowArgumentNull(sourceFile);
AssemblyDependency\GenerateBindingRedirects.cs (2)
195ErrorUtilities.VerifyThrow(runtimeNode != null, "This should not be called if the \"runtime\" node is missing."); 361ErrorUtilities.VerifyThrow(SuggestedRedirects?.Length > 0, "This should not be called if there is no suggested redirect.");
AssemblyDependency\GlobalAssemblyCache.cs (5)
59ErrorUtilities.VerifyThrowArgumentNull(assemblyName); 60ErrorUtilities.VerifyThrow(assemblyName.FullName != null, "Got a null assembly name fullname."); 120ErrorUtilities.VerifyThrowArgumentNull(targetedRuntime); 181ErrorUtilities.VerifyThrowArgumentNull(strongName); 189ErrorUtilities.VerifyThrow(hr == NativeMethodsShared.S_OK, "CreateAssemblyCache failed, hr {0}", hr);
AssemblyDependency\Reference.cs (4)
621ErrorUtilities.VerifyThrow( 623ErrorUtilities.VerifyThrow( 747ErrorUtilities.VerifyThrow(remappedFrom.Immutable, " Remapped from is NOT immutable"); 748ErrorUtilities.VerifyThrow(remappedTo.Immutable, " Remapped to is NOT immutable");
AssemblyDependency\ReferenceTable.cs (8)
423ErrorUtilities.VerifyThrow(assemblyName.Name != null, "Got an empty assembly name."); 448ErrorUtilities.VerifyThrow(assemblyName.Name != null, "Got an empty assembly name."); 1673ErrorUtilities.VerifyThrow(dependencyIterations < maxIterations, "Maximum iterations exceeded while looking for dependencies."); 1692ErrorUtilities.VerifyThrow(moreResolvableIterations < maxIterations, "Maximum iterations exceeded while looking for resolvable references."); 2348ErrorUtilities.VerifyThrow(assemblyReference0.assemblyName.FullName != null, "Got a null assembly name fullname. (0)"); 2349ErrorUtilities.VerifyThrow(assemblyReference1.assemblyName.FullName != null, "Got a null assembly name fullname. (1)"); 2554ErrorUtilities.VerifyThrowInternalNull(a); 2555ErrorUtilities.VerifyThrowInternalNull(b);
AssemblyDependency\ResolveAssemblyReference.cs (8)
346ErrorUtilities.VerifyThrowArgumentNull(value, "TargetFrameworkSubsets"); 496ErrorUtilities.VerifyThrowArgumentNull(value, "InstalledAssemblySubsetTables"); 527ErrorUtilities.VerifyThrowArgumentNull(value, "FullFrameworkAssemblyTables"); 879ErrorUtilities.VerifyThrowArgumentNull(value, "FullTargetFrameworkSubsetNames"); 897ErrorUtilities.VerifyThrowArgumentNull(value, "profileName"); 916ErrorUtilities.VerifyThrowArgumentNull(value, "FullFrameworkFolders"); 1354ErrorUtilities.VerifyThrowInternalNull(conflictCandidate); 1784ErrorUtilities.VerifyThrowArgumentNull(reference);
AssemblyFolder.cs (1)
57ErrorUtilities.ThrowInternalError("AssemblyFolder.AddFoldersFromRegistryKey expected a known hive.");
AssemblyFoldersFromConfig.cs (2)
32ErrorUtilities.VerifyThrowArgumentNull(configFile); 33ErrorUtilities.VerifyThrowArgumentNull(targetRuntimeVersion);
AssemblyNameExtension.cs (3)
327ErrorUtilities.VerifyThrow(!immutable, "Object is immutable cannot replace the version"); 384ErrorUtilities.VerifyThrow(extensionToAdd.Immutable, "ExtensionToAdd is not immutable"); 515ErrorUtilities.VerifyThrow(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
AssemblyRegistrationCache.cs (3)
34ErrorUtilities.VerifyThrow(_assemblies.Count == _typeLibraries.Count, "Internal assembly and type library lists should have the same number of entries in AssemblyRegistrationCache"); 53ErrorUtilities.VerifyThrow((index >= 0) && (index < _assemblies.Count), "Invalid index in the call to AssemblyRegistrationCache.GetEntry"); 67ErrorUtilities.VerifyThrowArgumentNull(translator);
AssemblyResources.cs (1)
27ErrorUtilities.VerifyThrow(resource != null, "Missing resource '{0}'", name);
CodeTaskFactory.cs (1)
347ErrorUtilities.VerifyThrowArgumentNull(task);
CombinePath.cs (1)
37ErrorUtilities.VerifyThrowArgumentNull(_paths, nameof(Paths));
CommandLineBuilderExtension.cs (1)
236ErrorUtilities.VerifyThrow(
ComReference.cs (1)
429ErrorUtilities.VerifyThrow(bufferSize <= int.MaxValue / 2, "Buffer size approaching int.MaxValue");
ComReferenceInfo.cs (1)
137ErrorUtilities.VerifyThrowArgumentNull(path);
ConversionUtilities.cs (3)
9using Error = Microsoft.Build.Shared.ErrorUtilities; 40Error.ThrowArgument("Shared.CannotConvertStringToBool", parameterValue); 159Error.ThrowInternalError("Cannot numeric evaluate");
ConvertToAbsolutePath.cs (1)
29ErrorUtilities.VerifyThrowArgumentNull(_paths, nameof(Paths));
CreateManifestResourceName.cs (4)
55ErrorUtilities.VerifyThrowArgumentNull(_resourceFiles, nameof(ResourceFiles)); 309ErrorUtilities.VerifyThrowArgumentNull(subName); 347ErrorUtilities.VerifyThrowArgumentNull(name); 379ErrorUtilities.VerifyThrowArgumentNull(name);
Delete.cs (1)
32ErrorUtilities.VerifyThrowArgumentNull(_files, nameof(Files));
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.");
FileState.cs (2)
130ErrorUtilities.ThrowInternalErrorUnreachable(); 250ErrorUtilities.VerifyThrowArgumentLength(filename);
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);
FindAppConfigFile.cs (2)
39ErrorUtilities.VerifyThrowArgumentNull(_primaryList, nameof(PrimaryList)); 53ErrorUtilities.VerifyThrowArgumentNull(_secondaryList, nameof(SecondaryList));
FindInList.cs (1)
30ErrorUtilities.VerifyThrowArgumentNull(_list, nameof(List));
GenerateResource.cs (10)
620ErrorUtilities.VerifyThrowInternalNull(resGenCommand); 811ErrorUtilities.VerifyThrow(processType == typeof(ProcessResourceFiles), "Somehow got a wrong and possibly incompatible type for ProcessResourceFiles."); 1148ErrorUtilities.VerifyThrow(inputsToProcess.Count != 0, "There should be resource files to process"); 1149ErrorUtilities.VerifyThrow(inputsToProcess.Count == outputsToProcess.Count, "The number of inputs and outputs should be equal"); 1269ErrorUtilities.VerifyThrow(inputsToProcess.Count == 1 && outputsToProcess.Count == 1, "For STR, there should only be one input and one output."); 2102ErrorUtilities.VerifyThrow(OutputResources != null && OutputResources.Length != 0, "Should be at least one output resource"); 2186ErrorUtilities.VerifyThrow(_cache != null, "We did not create a cache!"); 2720ErrorUtilities.VerifyThrow(_readers.Count == 1, 2730ErrorUtilities.VerifyThrow(_readers.Count == 1, 4172ErrorUtilities.ThrowArgument("GenerateResource.CouldNotLoadType", name);
GetAssembliesMetadata.cs (1)
71ErrorUtilities.VerifyThrowArgumentNull(value, nameof(AssemblyPaths));
GetAssemblyIdentity.cs (1)
35ErrorUtilities.VerifyThrowArgumentNull(_assemblyFiles, nameof(AssemblyFiles));
GetInstalledSDKLocations.cs (2)
71ErrorUtilities.VerifyThrowArgumentNull(value, nameof(TargetPlatformVersion)); 86ErrorUtilities.VerifyThrowArgumentNull(value, nameof(TargetPlatformIdentifier));
GetSDKReferenceFiles.cs (4)
97ErrorUtilities.VerifyThrowArgumentNull(value, nameof(CacheFileFolderPath)); 111ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ResolvedSDKReferences)); 126ErrorUtilities.VerifyThrowArgumentNull(value, nameof(ReferenceExtensions)); 664ErrorUtilities.VerifyThrowArgument(sdkIdentity.Length != 0, "GetSDKReferenceFiles.NoOriginalItemSpec", sdk.ItemSpec);
InterningBinaryReader.cs (3)
14using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; 126ErrorUtilities.ThrowInternalError("From calculating based on the memorystream, about to read n = {0}. length = {1}, rawPosition = {2}, readLength = {3}, stringLength = {4}, currPos = {5}.", n, length, rawPosition, readLength, stringLength, currPos); 141ErrorUtilities.ThrowInternalError("From getting the length out of BaseStream.Read directly, about to read n = {0}. readLength = {1}, stringLength = {2}, currPos = {3}", n, readLength, stringLength, currPos);
MakeDir.cs (1)
24ErrorUtilities.VerifyThrowArgumentNull(_directories, nameof(Directories));
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);
MSBuild.cs (4)
165ErrorUtilities.ThrowInternalError("Unexpected case {0}", _skipNonExistentProjects); 169ErrorUtilities.ThrowInternalErrorUnreachable(); 349ErrorUtilities.VerifyThrow(skipNonExistProjects == SkipNonExistentProjectsBehavior.Error, "skipNonexistentProjects has unexpected value {0}", skipNonExistProjects); 685ErrorUtilities.VerifyThrowArgument(ConversionUtilities.CanConvertStringToBool(value), "MSBuild.InvalidSkipNonexistentProjectValue");
MSBuildNameIgnoreCaseComparer.cs (2)
49ErrorUtilities.ThrowInternalError("Invalid lengthToCompare '{0}' {1} {2}", constrainedString, start, lengthToCompare); 54ErrorUtilities.ThrowInternalError("Invalid start '{0}' {1} {2}", constrainedString, start, lengthToCompare);
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.");
ReadOnlyCollection.cs (6)
38ErrorUtilities.VerifyThrow(backing != null, "Need backing collection"); 101ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 109ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 132ErrorUtilities.VerifyThrowArgumentNull(array); 155ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 188ErrorUtilities.VerifyThrowArgumentNull(array);
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");
RedistList.cs (4)
294ErrorUtilities.VerifyThrowArgumentNull(frameworkDirectory); 432ErrorUtilities.VerifyThrowArgumentNull(assemblyName); 994ErrorUtilities.VerifyThrowArgumentNull(subsetToSearchFor); 1018ErrorUtilities.VerifyThrowArgumentNull(frameworkDirectory);
RegisterAssembly.cs (3)
41ErrorUtilities.VerifyThrowArgumentNull(_assemblies, nameof(Assemblies)); 195ErrorUtilities.VerifyThrowArgumentNull(assemblyToResolve); 211ErrorUtilities.VerifyThrowArgumentNull(typeLibPath);
RemoveDir.cs (1)
31ErrorUtilities.VerifyThrowArgumentNull(_directories, nameof(Directories));
ResGen.cs (3)
366ErrorUtilities.VerifyThrow(!IsNullOrEmpty(InputFiles), "If InputFiles is empty, the task should have returned before reaching this point"); 405ErrorUtilities.VerifyThrow(!IsNullOrEmpty(InputFiles), "If InputFiles is empty, the task should have returned before reaching this point"); 474ErrorUtilities.VerifyThrow(!IsNullOrEmpty(InputFiles), "If InputFiles is empty, the task should have returned before reaching this point");
ResolveComReference.cs (1)
1041ErrorUtilities.ThrowInternalError("Unknown wrapper type!");
ResolveComReferenceCache.cs (2)
44ErrorUtilities.VerifyThrowArgumentNull(tlbImpPath); 45ErrorUtilities.VerifyThrowArgumentNull(axImpPath);
ResolveNativeReference.cs (2)
50ErrorUtilities.VerifyThrowArgumentNull(_nativeReferences, nameof(NativeReferences)); 61ErrorUtilities.VerifyThrowArgumentNull(_additionalSearchPaths, nameof(AdditionalSearchPaths));
ResolveProjectBase.cs (1)
33ErrorUtilities.VerifyThrowArgumentNull(_projectReferences, nameof(ProjectReferences));
ResolveSDKReference.cs (5)
128ErrorUtilities.VerifyThrowArgumentNull(value, nameof(SDKReferences)); 144ErrorUtilities.VerifyThrowArgumentNull(value, nameof(InstalledSDKs)); 733ErrorUtilities.VerifyThrowArgumentNull(taskItem); 734ErrorUtilities.VerifyThrowArgumentLength(sdkName); 735ErrorUtilities.VerifyThrowArgumentLength(sdkVersion);
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);
SGen.cs (2)
153ErrorUtilities.VerifyThrowArgumentNull(value, nameof(BuildAssemblyName)); 164ErrorUtilities.VerifyThrowArgumentNull(value, nameof(BuildAssemblyPath));
StreamMappedString.cs (5)
195ErrorUtilities.VerifyThrow(originalPageNumber != _currentPageNumber, "Expected a new page."); 290ErrorUtilities.VerifyThrow(_charactersRead != _pageSize, "Attempt to append to non-last page."); 305ErrorUtilities.VerifyThrow(_priorPage != null, "There is no last character in the stream."); 389ErrorUtilities.VerifyThrow(charactersExtracted > 0, "Expected non-zero extraction count."); 404ErrorUtilities.VerifyThrow(page >= _currentPageNumber - 1 && page <= _currentPageNumber, "Could not get character count for this page.");
StrongNameUtils.cs (1)
138ErrorUtilities.VerifyThrowArgumentNull(assemblyPath);
SystemState.cs (1)
171ErrorUtilities.VerifyThrowArgumentNull(translator);
TaskLoggingHelperExtension.cs (4)
93ErrorUtilities.VerifyThrowArgumentNull(resourceName); 94ErrorUtilities.VerifyThrowInvalidOperation(TaskResources != null, "Shared.TaskResourcesNotRegistered", TaskName); 95ErrorUtilities.VerifyThrowInvalidOperation(TaskSharedResources != null, "Shared.TaskResourcesNotRegistered", TaskName); 105ErrorUtilities.VerifyThrowArgument(resourceString != null, "Shared.TaskResourceNotFound", resourceName, TaskName);
TempFileUtilities.cs (2)
162ErrorUtilities.VerifyThrowArgumentLengthIfNotNull(directory, nameof(directory)); 188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
tokenCharReader.cs (2)
268ErrorUtilities.VerifyThrow(originalPosition != _position, "Expected position to be incremented."); 275ErrorUtilities.VerifyThrow(originalPosition != _position, "Expected position to be incremented.");
UnregisterAssembly.cs (1)
153ErrorUtilities.VerifyThrowArgumentNull(typeLibPath);
Unzip.cs (1)
174ErrorUtilities.VerifyThrowInvalidOperation(fullDestinationPath.StartsWith(fullDestinationDirectoryPath, FileUtilities.PathComparison), "Unzip.ZipSlipExploit", fullDestinationPath);
WinMDExp.cs (9)
39ErrorUtilities.VerifyThrowArgumentNull(value, nameof(References)); 53ErrorUtilities.VerifyThrowArgumentNull(value, nameof(DisabledWarnings)); 67ErrorUtilities.VerifyThrowArgumentNull(value, nameof(InputDocumentationFile)); 81ErrorUtilities.VerifyThrowArgumentNull(value, nameof(OutputDocumentationFile)); 95ErrorUtilities.VerifyThrowArgumentNull(value, nameof(InputPDBFile)); 109ErrorUtilities.VerifyThrowArgumentNull(value, nameof(OutputPDBFile)); 124ErrorUtilities.VerifyThrowArgumentNull(value, nameof(WinMDModule)); 139ErrorUtilities.VerifyThrowArgumentNull(value, nameof(OutputWindowsMetadataFile)); 181ErrorUtilities.VerifyThrowArgumentNull(value, nameof(AssemblyUnificationPolicy));
XamlTaskFactory\CommandLineGenerator.cs (4)
40ErrorUtilities.VerifyThrowArgumentNull(rule); 41ErrorUtilities.VerifyThrowArgumentNull(parameterValues); 46ErrorUtilities.VerifyThrow(success, "Unable to parse specified file or contents."); 261ErrorUtilities.ThrowInternalError("InternalError");
XamlTaskFactory\CommandLineToolSwitch.cs (8)
243ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.Boolean, "InvalidType", TypeBoolean); 249ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.Boolean, "InvalidType", TypeBoolean); 261ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.Integer, "InvalidType", TypeInteger); 267ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.Integer, "InvalidType", TypeInteger); 280ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.StringArray, "InvalidType", TypeStringArray); 286ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.StringArray, "InvalidType", TypeStringArray); 299ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.ITaskItemArray, "InvalidType", TypeITaskItemArray); 305ErrorUtilities.VerifyThrow(Type == CommandLineToolSwitchType.ITaskItemArray, "InvalidType", TypeITaskItemArray);
XamlTaskFactory\RelationsParser.cs (1)
250ErrorUtilities.VerifyThrow(xmlDocument != null, nameof(xmlDocument));
XamlTaskFactory\TaskGenerator.cs (1)
611ErrorUtilities.VerifyThrow(value != null, "NullValue", property);
XamlTaskFactory\TaskParser.cs (4)
92ErrorUtilities.VerifyThrowArgumentLength(contentOrFile); 93ErrorUtilities.VerifyThrowArgumentLength(desiredRule); 189ErrorUtilities.VerifyThrowArgumentNull(reader); 190ErrorUtilities.VerifyThrowArgumentLength(desiredRule);
XamlTaskFactory\XamlTaskFactory.cs (3)
87ErrorUtilities.VerifyThrowArgumentNull(taskName); 88ErrorUtilities.VerifyThrowArgumentNull(taskParameters); 213ErrorUtilities.VerifyThrowArgumentNull(task);
XMakeAttributes.cs (4)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
XslTransformation.cs (3)
73ErrorUtilities.VerifyThrowArgumentNull(_outputPaths, "OutputPath"); 100ErrorUtilities.VerifyThrowArgumentNull(_outputPaths, "OutputPath"); 491ErrorUtilities.ThrowInternalErrorUnreachable();
Microsoft.Build.Tasks.UnitTests (9)
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");
QuotingUtilities.cs (2)
71ErrorUtilities.VerifyThrow(maxSplits >= 2, "There is no point calling this method for less than two splits."); 75ErrorUtilities.VerifyThrow(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");