44 references to SR
Microsoft.Build.Framework (44)
Collections\ReadOnlyCollection.cs (3)
101throw new InvalidOperationException(SR.CollectionIsReadOnly); 109throw new InvalidOperationException(SR.CollectionIsReadOnly); 155throw new InvalidOperationException(SR.CollectionIsReadOnly);
Collections\ReadOnlyEmptyCollection.cs (3)
86throw new InvalidOperationException(SR.CollectionIsReadOnly); 94throw new InvalidOperationException(SR.CollectionIsReadOnly); 117throw new InvalidOperationException(SR.CollectionIsReadOnly);
Collections\ReadOnlyEmptyDictionary.cs (6)
165throw new InvalidOperationException(SR.CollectionIsReadOnly); 174throw new InvalidOperationException(SR.CollectionIsReadOnly); 190throw new InvalidOperationException(SR.CollectionIsReadOnly); 207throw new InvalidOperationException(SR.CollectionIsReadOnly); 215throw new InvalidOperationException(SR.CollectionIsReadOnly); 238throw new InvalidOperationException(SR.CollectionIsReadOnly);
FileSystem\WindowsFileSystem.cs (1)
61throw new PathTooLongException(SR.FormatPathTooLong(path, NativeMethods.MaxPath));
FileUtilities.cs (3)
461throw new ArgumentException(SR.FormatDebugPathTooLong(directory)); 692throw new PathTooLongException(SR.FormatPathTooLong(path, NativeMethods.MaxPath)); 1722throw new ArgumentException(SR.FormatInvalidGetPathOfFileAboveParameter(file));
FileUtilities_TempFiles.cs (1)
206throw new IOException(SR.FormatFailedCreatingTempFile(ex.Message), ex);
ItemSpecModifiers.cs (1)
493throw new InvalidOperationException(SR.FormatInvalidFilespecForTransform(modifier, itemSpec, e.Message));
Microsoft.Build.Framework.Resources.SR.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(SR)));
PathHelpers\AbsolutePath.cs (1)
94throw new ArgumentException(SR.PathMustBeRooted, nameof(path));
Polyfills\ArgumentExceptionExtensions.cs (11)
355throw new ArgumentException(SR.Argument_EmptyString, paramName); 362throw new ArgumentException(SR.Argument_EmptyOrWhiteSpaceString, paramName); 367=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeNonZero(paramName, value)); 371=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeNonNegative(paramName, value)); 375=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeNonNegativeNonZero(paramName, value)); 379=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeLessOrEqual(paramName, value, other)); 383=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeLess(paramName, value, other)); 387=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeGreaterOrEqual(paramName, value, other)); 391=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeGreater(paramName, value, other)); 395=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeNotEqual(paramName, (object?)value ?? "null", (object?)other ?? "null")); 399=> throw new ArgumentOutOfRangeException(paramName, value, SR.FormatArgumentOutOfRange_Generic_MustBeEqual(paramName, (object?)value ?? "null", (object?)other ?? "null"));
Utilities\ConversionUtilities.cs (1)
40throw new ArgumentException(SR.FormatCannotConvertStringToBool(parameterValue));
Utilities\FileMatcher.cs (2)
2620SR.FormatGlobExpansionFailed(filespecUnescaped, ex.ToString())); 2632SR.FormatGlobExpansionFailed(filespecUnescaped, ex.ToString()));
Utilities\FrameworkLocationHelper.cs (9)
673throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 688throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 718throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 733throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(dotNetFrameworkVersion)); 1048throw new InvalidOperationException(SR.FormatCouldNotGenerateReferenceAssemblyDirectory(targetFrameworkRootPath, frameworkName.ToString(), e.Message)); 1176: throw new ArgumentException(SR.FormatUnsupportedVisualStudioVersion(version)); 1181: throw new ArgumentException(SR.FormatUnsupportedFrameworkVersion(version)); 1611throw new ArgumentException(SR.FormatUnsupportedFrameworkVersionForWindowsSdk(Version)); 1618throw new ArgumentException(SR.FormatUnsupportedFrameworkVersionForWindowsSdk(Version));
Utilities\MetadataConversionUtilities.cs (1)
44throw new ArgumentException(SR.FormatInvalidAttributeMetadata(item.ItemSpec, itemMetadataName, metadataValue, "bool"), e);