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