68 references to Strings
Microsoft.DotNet.TemplateLocator (68)
src\sdk\artifacts\obj\Microsoft.DotNet.TemplateLocator\Release\net11.0\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
)));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (2)
5
using Strings = Microsoft.NET.Sdk.Localization.
Strings
;
17
throw new ArgumentException(
Strings
.InvalidManifestVersion, version);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (7)
187
throw new FileNotFoundException(string.Format(
Strings
.WorkloadVersionNotFound, _workloadSetVersionFromConstructor));
199
_exceptionToThrow = new FileNotFoundException(string.Format(
Strings
.WorkloadVersionFromGlobalJsonNotFound, _globalJsonWorkloadSetVersion, _globalJsonPathFromConstructor));
213
throw new FileNotFoundException(string.Format(
Strings
.WorkloadVersionFromInstallStateNotFound, installState.WorkloadVersion, _installStateFilePath));
278
throw new InvalidOperationException(string.Format(
Strings
.WorkloadSetHasMissingManifests, _workloadSet.Version));
334
throw new InvalidOperationException(string.Format(
Strings
.WorkloadSetHasMissingManifests, _workloadSet.Version));
416
throw new FileNotFoundException(string.Format(
Strings
.ManifestFromWorkloadSetNotFound, manifestSpecifier.ToString(), _workloadSet.Version));
437
throw new FileNotFoundException(string.Format(
Strings
.ManifestFromInstallStateNotFound, manifestSpecifier.ToString(), _installStateFilePath));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs (3)
95
throw new JsonFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
108
throw new JsonFormatException(
Strings
.UnexpectedTokenAtOffset, reader.TokenType, reader.TokenStartIndex);
112
throw new JsonFormatException(
Strings
.IncompleteDocument);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\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);
749
throw new Exception(string.Format(
Strings
.ManifestDoesNotExist, manifestId));
760
throw new Exception(string.Format(
Strings
.ManifestDoesNotExist, manifestId));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (2)
6
using Strings = Microsoft.NET.Sdk.Localization.
Strings
;
45
throw new FormatException(string.Format(
Strings
.InvalidVersionForWorkload, manifest.Key, manifestVersionString));