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