66 references to Strings
Microsoft.DotNet.MSBuildSdkResolver (66)
ManifestVersion.cs (2)
5
using Strings = Microsoft.NET.Sdk.Localization.
Strings
;
17
throw new ArgumentException(
Strings
.InvalidManifestVersion, version);
Microsoft.NET.Sdk.Localization.Strings.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Strings
)));
SdkDirectoryWorkloadManifestProvider.cs (5)
168
throw new FileNotFoundException(string.Format(
Strings
.WorkloadVersionNotFound, _workloadSetVersionFromConstructor));
180
_exceptionToThrow = new FileNotFoundException(string.Format(
Strings
.WorkloadVersionFromGlobalJsonNotFound, _globalJsonWorkloadSetVersion, _globalJsonPathFromConstructor));
194
throw new FileNotFoundException(string.Format(
Strings
.WorkloadVersionFromInstallStateNotFound, installState.WorkloadVersion, _installStateFilePath));
366
throw new FileNotFoundException(string.Format(
Strings
.ManifestFromWorkloadSetNotFound, manifestSpecifier.ToString(), _workloadSet.Version));
383
throw new FileNotFoundException(string.Format(
Strings
.ManifestFromInstallStateNotFound, manifestSpecifier.ToString(), _installStateFilePath));
SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs (3)
71
throw new JsonFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
84
throw new JsonFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
88
throw new JsonFormatException(
Strings
.IncompleteDocument);
SdkDirectoryWorkloadManifestProvider.JsonReader.cs (4)
58
key =
Strings
.ExpectedBoolAtOffset;
62
key =
Strings
.ExpectedIntegerAtOffset;
66
key =
Strings
.ExpectedStringAtOffset;
70
throw new JsonFormatException(
Strings
.ExpectedTokenAtOffset, expected, reader.TokenStartIndex);
WorkloadManifestReader.cs (38)
29
key =
Strings
.ExpectedBoolAtOffset;
33
key =
Strings
.ExpectedIntegerAtOffset;
37
key =
Strings
.ExpectedStringAtOffset;
41
throw new WorkloadManifestFormatException(
Strings
.ExpectedTokenAtOffset, expected, reader.TokenStartIndex);
63
throw new WorkloadManifestFormatException(
Strings
.ExpectedIntegerAtOffset, reader.TokenStartIndex);
73
throw new WorkloadManifestFormatException(
Strings
.ExpectedBoolAtOffset, reader.TokenStartIndex);
77
=> throw new WorkloadManifestFormatException(
Strings
.DuplicateKeyAtOffset, key?.ToString() ?? throw new ArgumentNullException(nameof(key)), reader.TokenStartIndex);
121
throw new WorkloadManifestFormatException(
Strings
.MissingOrInvalidManifestVersion);
163
throw new WorkloadManifestFormatException(
Strings
.UnknownKeyAtOffset, propName, reader.TokenStartIndex);
168
throw new WorkloadManifestFormatException(
Strings
.MissingOrInvalidManifestVersion);
181
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
185
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
241
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
245
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
267
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
271
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
293
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
297
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
316
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
320
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
339
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
343
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
365
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
369
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
391
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
395
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
434
throw new WorkloadManifestFormatException(
Strings
.UnknownWorkloadDefinitionKind, kindStr, reader.TokenStartIndex);
475
throw new WorkloadManifestFormatException(
Strings
.UnknownKeyAtOffset, propName, reader.TokenStartIndex);
481
throw new WorkloadManifestFormatException(
Strings
.RedirectWorkloadHasOtherKeys, id);
489
throw new WorkloadManifestFormatException(
Strings
.ConcreteWorkloadHasNoDescription, id);
493
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
497
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
532
throw new WorkloadManifestFormatException(
Strings
.UnknownWorkloadPackKind, kindStr, reader.TokenStartIndex);
545
throw new WorkloadManifestFormatException(
Strings
.UnknownKeyAtOffset, propName, reader.TokenStartIndex);
549
throw new WorkloadManifestFormatException(
Strings
.MissingWorkloadPackVersion, id);
553
throw new WorkloadManifestFormatException(
Strings
.MissingWorkloadPackKind, id);
557
throw new WorkloadManifestFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
561
throw new WorkloadManifestFormatException(
Strings
.IncompleteDocument);
WorkloadResolver.cs (11)
129
throw new WorkloadManifestCompositionException(
Strings
.DuplicateManifestID, manifestProvider.GetType().FullName, readableManifest.ManifestId, readableManifest.ManifestPath, existingManifest.ManifestPath);
153
throw new WorkloadManifestCompositionException(
Strings
.ManifestDependencyVersionTooLow, dependency.Key, resolvedDependency.Version, dependency.Value, manifest.Id, manifest.ManifestPath);
158
throw new WorkloadManifestCompositionException(
Strings
.ManifestDependencyMissing, dependency.Key, manifest.Id, manifest.ManifestPath);
174
throw new WorkloadManifestCompositionException(
Strings
.ConflictingWorkloadDefinition, workload.Key, manifest.Id, manifest.ManifestPath, conflictingManifest.Id, conflictingManifest.ManifestPath);
184
throw new WorkloadManifestCompositionException(
Strings
.ConflictingWorkloadPack, pack.Key, manifest.Id, manifest.ManifestPath, conflictingManifest.Id, conflictingManifest.ManifestPath);
205
throw new WorkloadManifestCompositionException(
Strings
.ConflictingWorkloadDefinition, redirect.Id, manifest.Id, manifest.ManifestPath, conflictingManifest.Id, conflictingManifest.ManifestPath);
218
throw new WorkloadManifestCompositionException(
Strings
.UnresolvedWorkloadRedirect, redirect.ReplaceWith, redirect.Id, manifest.Id, manifest.ManifestPath);
223
throw new WorkloadManifestCompositionException(
Strings
.CyclicWorkloadRedirect, cyclic.redirect.Id, cyclic.manifest.Id, cyclic.manifest.ManifestPath);
442
throw new WorkloadManifestCompositionException(
Strings
.MissingBaseWorkload, baseWorkloadId, workloadId, manifest?.Id, manifest?.ManifestPath);
750
throw new Exception(string.Format(
Strings
.ManifestDoesNotExist, manifestId));
761
throw new Exception(string.Format(
Strings
.ManifestDoesNotExist, manifestId));
WorkloadSet.cs (2)
6
using Strings = Microsoft.NET.Sdk.Localization.
Strings
;
45
throw new FormatException(string.Format(
Strings
.InvalidVersionForWorkload, manifest.Key, manifestVersionString));