155 references to SR
dotnet-svcutil-lib (155)
artifacts\obj\dotnet-svcutil-lib\Debug\netstandard2.0\Microsoft.Tools.ServiceModel.Svcutil.SR.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
SR
)));
CmdCredentialsProvider.cs (7)
30
username = ReadUserInput(
SR
.UsernamePrompt);
35
var password = ReadUserInput(
SR
.PasswordPrompt, isPassword: true);
48
Console.WriteLine(
SR
.WrnUserBasicCredentialsInClearText);
143
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
SR
.CertificateSelectionMessageFormat, serviceUri.Authority));
166
idxString = ReadUserInput(
SR
.CertificateIndexPrompt);
227
Console.WriteLine(string.Format(CultureInfo.InvariantCulture,
SR
.ErrServerCertFailedValidationFormat, sslPolicyErrors, FormatCertificate(cert)));
259
Console.WriteLine(
SR
.EnterOrEscapeMessage);
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
69
_requestReplyError = new MetadataConversionError(
SR
.RequestReplyCallbackContractNotSupported, false);
CodeDomFixup\ConfigToCode.cs (1)
450
throw new ArgumentException(
SR
.NotClientBaseType);
CodeDomFixup\EndpointSelector.cs (23)
45
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTypeNotSupportedFormat, binding.GetType().FullName,
55
s_bindingValidationErrors.Add(
SR
.BindingTransactionFlowNotSupported);
69
s_bindingValidationErrors.Add(
SR
.BindingTransactionFlowNotSupported);
129
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportTypeNotSupportedFormat, bindingElement.GetType().FullName,
137
s_bindingValidationErrors.Add(string.Format(
SR
.BindingMessageEncodingElementNotSupportedFormat, bindingElement.GetType().FullName,
147
s_bindingValidationErrors.Add(string.Format(
SR
.BindingBinaryMessageEncodingVersionNotSupportedFormat,
161
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTextMessageEncodingVersionNotSupportedFormat,
178
s_bindingValidationErrors.Add(string.Format(
SR
.BindingMtomMessageEncodingVersionNotSupportedFormat,
205
s_bindingValidationErrors.Add(
SR
.BindingTransactionFlowNotSupported);
209
s_bindingValidationErrors.Add(
SR
.BindingTransactionFlowNotSupported);
218
s_bindingValidationErrors.Add(string.Format(
SR
.BindingElementTypeNotSupportedFormat, bindingElement.GetType().FullName));
228
s_bindingValidationErrors.Add(
SR
.BindingTransportSecurityTokenSignedOrSignedEndorsingNotSupported);
242
s_bindingValidationErrors.Add(
SR
.BindingTransportSecurityTokenParamsRequiringDerivedKeysNotSupported);
249
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityElementTypeNotSupportedFormat,
261
s_bindingValidationErrors.Add(
SR
.BindingTransportSecurityMustIncludeTimestamp);
266
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityDefaultAlgorithmSuiteNotSupportedFormat,
291
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportMessageSecurityVersionNotSupportedFormat, transportSecurityBindingElement.MessageSecurityVersion, values));
296
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityDefaultAlgorithmSuiteNotSupportedFormat,
306
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityTokenParamsInclusionModeValueNotSupportedFormat,
311
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityTokenParamsReferenceStyleNotSupportedFormat,
316
s_bindingValidationErrors.Add(
SR
.BindingTransportSecurityTokenParamsRequiringDerivedKeysNotSupported);
321
s_bindingValidationErrors.Add(string.Format(
SR
.BindingTransportSecurityTokenParamsTypeNotSupportedFormat,
339
string incompatEndpointMsg = string.Format(CultureInfo.InvariantCulture,
SR
.WrnIncompatibleEndpointFormat, endpoint.Name, endpoint.Address);
CodeDomFixup\MethodCreationHelper.cs (10)
112
indent + "{0} " +
SR
.ConfigureEndpointCommentSummary + Environment.NewLine +
114
indent + "{0} <param name=\"serviceEndpoint\">" +
SR
.ServiceEndpointComment + "</param>" + Environment.NewLine +
115
indent + "{0} <param name=\"clientCredentials\">" +
SR
.ClientCredentialsComment + "</param>" + Environment.NewLine;
211
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrBindingTypeNotSupportedFormat, binding.GetType().FullName));
1084
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrBindingElementNotSupportedFormat, bindingElement.GetType().FullName));
1632
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrEncodingNotSupportedFormat, encoding.WebName));
1658
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrMessageVersionNotSupportedFormat, messageVersion));
1676
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrMessageVersionNotSupportedFormat, messagingVersion));
2218
new CodePrimitiveExpression(
SR
.CodeExpressionCouldNotFindEndpoint),
2228
new CodePrimitiveExpression(
SR
.CodeExpressionCouldNotFindEndpoint),
CodeDomFixup\NoSoapEncodingFixup.cs (1)
30
MetadataConversionError warning = new MetadataConversionError(string.Format(CultureInfo.InvariantCulture,
SR
.ErrIncompatibleContractSoapEncodingFormat, contract.Name), isWarning: true);
CodeDomFixup\WcfCodeGenerationExtension.cs (1)
56
MetadataConversionError error = new MetadataConversionError(
SR
.ErrNoCompatibleEndpoints, isWarning: true);
CodeSerializer.cs (4)
42
throw new ToolRuntimeException(
SR
.NoCodeWasGenerated);
54
throw new ToolRuntimeException(
SR
.ErrCannotWriteFile, e);
88
throw new ToolRuntimeException(
SR
.ErrCodegenError, e);
107
throw new ToolRuntimeException(string.Format(
SR
.ErrCannotCreateFileFormat, _outputFilePath), e);
CommandLineParser.cs (3)
151
options.AddError(string.Format(
SR
.ErrUnknownSwitchFormat, arg));
169
options.AddError(string.Format(
SR
.ErrArgumentWithoutValue, argSwitch.Name));
179
options.AddError(string.Format(
SR
.ErrSingleUseSwitchFormat, argSwitch.Name));
CommandProcessorOptions.cs (23)
167
fileOptions.AddWarning(string.Format(
SR
.WrnExtraParamsOnInputFileParamIgnoredFormat, disallowedSwitchesOnParamsFilesProvided.Select(s => $"'{s.Name}'").Aggregate((msg, n) => $"{msg}, '{n}'")), 0);
296
this.AddWarning(string.Format(
SR
.WrnUnexpectedArgumentFormat, cmdSwitch.Name), 0);
307
this.AddWarning(string.Format(
SR
.WrnUnexpectedInputsFormat, this.Inputs.Select(i => $"{i}''").Aggregate((msg, i) => $"{msg}, {i}")));
314
this.AddWarning(string.Format(
SR
.WrnUnexpectedArgumentFormat, option.Name));
347
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, workingDirectory));
352
var moreThanOneProjectMsg = string.Format(CultureInfo.CurrentCulture,
SR
.ErrMoreThanOneProjectFoundFormat, workingDirectory);
356
var useProjectOptions = string.Format(CultureInfo.CurrentCulture,
SR
.UseProjectFileOptionOnMultipleFilesMsgFormat, Switches.ProjectFile.Name, projectItems);
441
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrOutputFileAlreadyExistsFormat, filePath, Switches.OutputFile.Name));
448
string.Format(CultureInfo.CurrentCulture,
SR
.ErrOutputFileNotUnderOutputDirFormat, Switches.OutputFile.Name, outputFile, this.OutputDir, Switches.OutputDirectory.Name));
454
this.AddWarning(string.Format(CultureInfo.CurrentCulture,
SR
.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.Project.DirectoryPath));
474
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, Directory.GetCurrentDirectory()));
478
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrProjectToUpdateNotFoundFormat, Switches.Update.Name, Switches.ProjectFile.Name));
509
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrNoUpdateParamsFileFoundFormat, this.Project.FullPath));
517
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrMoreThanOneUpdateParamsFilesFoundFormat, this.Project.FullPath, Switches.Update.Name, svcRefNames));
531
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrServiceReferenceNotFoundUnderProjectFormat, this.UpdateServiceReferenceFolder, this.Project.FullPath));
539
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrNoUpdateParamsFileFoundFormat, this.Project.FullPath));
663
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture,
SR
.ErrInvalidNamespaceFormat,
674
this.Project.EndOfLifeTargetFrameworks?.ToList().ForEach(tfx => this.AddWarning(string.Format(CultureInfo.CurrentCulture,
SR
.WrnOutOfSupportTargetFrameworkFormat, tfx)));
680
this.AddWarning(string.Format(CultureInfo.CurrentCulture,
SR
.WrnOutOfSupportTargetFrameworkFormat, this.TargetFramework.FullName));
726
throw new ToolInputException(
SR
.ErrNoValidInputSpecified);
866
throw new ToolArgumentException(string.Format(
SR
.ErrDuplicateValuePassedToTypeArgFormat, cmd, typeArg));
933
throw new ToolArgumentException(string.Format(
SR
.ErrCannotDisambiguateSpecifiedTypesFormat,
981
throw new ToolArgumentException(string.Format(
SR
.ErrCannotLoadSpecifiedTypeFormat, Switches.CollectionType.Name, collectionType, Switches.Reference.Name));
HelpGenerator.cs (54)
33
s_helpBuilder.AppendLine(
SR
.HelpUsage1);
35
s_helpBuilder.AppendLine(
SR
.HelpUsage2);
40
HelpCategory helpCategory = new HelpCategory(
SR
.HelpUsageCategory)
43
ArgumentInfo.CreateInputHelpInfo(
SR
.HelpInputMetadataDocumentPath,
SR
.HelpCodeGenerationSyntaxInput1),
44
ArgumentInfo.CreateInputHelpInfo(
SR
.HelpInputUrl,
SR
.HelpCodeGenerationSyntaxInput2),
45
ArgumentInfo.CreateInputHelpInfo(
SR
.HelpInputEpr,
SR
.HelpCodeGenerationSyntaxInput3)
49
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputDirectory.Name,
SR
.ParametersDirectory, string.Format(
SR
.HelpDirectoryFormat, CommandProcessorOptions.Switches.OutputDirectory.Abbreviation)),
50
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoLogo.Name, string.Format(
SR
.HelpNologoFormat, CommandProcessorOptions.Switches.NoLogo.Abbreviation)),
51
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Verbosity.Name,
SR
.ParametersVerbosity, string.Format(
SR
.HelpVerbosityFormat, string.Join(", ", System.Enum.GetNames(typeof(Verbosity))), CommandProcessorOptions.Switches.Verbosity.Abbreviation)),
52
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Help.Name, string.Format(
SR
.HelpHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation)),
53
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ProjectFile.Name,
SR
.ParametersProjectFile, string.Format(
SR
.HelpProjectFileFormat, CommandProcessorOptions.Switches.ProjectFile.Abbreviation)),
54
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputFile.Name,
SR
.ParametersOut, string.Format(
SR
.HelpOutFormat, CommandProcessorOptions.Switches.OutputFile.Abbreviation)),
55
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Namespace.Name,
SR
.ParametersNamespace, string.Format(
SR
.HelpNamespaceFormat, CommandProcessorOptions.Switches.Namespace.Abbreviation), true),
56
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.MessageContract.Name, string.Format(
SR
.HelpMessageContractFormat, CommandProcessorOptions.Switches.MessageContract.Abbreviation), true),
57
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.EnableDataBinding.Name, string.Format(
SR
.HelpEnableDataBindingFormat, CommandProcessorOptions.Switches.EnableDataBinding.Abbreviation)),
58
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Internal.Name, string.Format(
SR
.HelpInternalFormat, CommandProcessorOptions.Switches.Internal.Abbreviation)),
59
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Reference.Name,
SR
.ParametersReference, string.Format(
SR
.HelpReferenceCodeGenerationFormat, CommandProcessorOptions.Switches.Reference.Abbreviation), true),
60
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoTypeReuse.Name, string.Format(
SR
.HelpNoTypeReuseFormat, CommandProcessorOptions.Switches.NoTypeReuse.Abbreviation, CommandProcessorOptions.Switches.Reference.Name, CommandProcessorOptions.Switches.CollectionType.Name)),
61
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.CollectionType.Name,
SR
.ParametersCollectionType, string.Format(
SR
.HelpCollectionTypeFormat, CommandProcessorOptions.Switches.CollectionType.Abbreviation)),
62
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ExcludeType.Name,
SR
.ParametersExcludeType, string.Format(
SR
.HelpExcludeTypeCodeGenerationFormat, CommandProcessorOptions.Switches.ExcludeType.Abbreviation)),
63
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoStdlib.Name, string.Format(
SR
.HelpNostdlibFormat, CommandProcessorOptions.Switches.NoStdlib.Abbreviation)),
64
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.Auto.ToString(), string.Format(
SR
.HelpAutoSerializerFormat, CommandProcessorOptions.Switches.Serializer.Abbreviation), true),
65
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.DataContractSerializer.ToString(),
SR
.HelpDataContractSerializer),
66
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.XmlSerializer.ToString(),
SR
.HelpXmlSerializer),
67
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Sync.Name, string.Format(
SR
.HelpSyncFormat, CommandProcessorOptions.Switches.Sync.Abbreviation)),
68
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.SyncOnly.Name, string.Format(
SR
.HelpSyncOnlyFormat, CommandProcessorOptions.Switches.SyncOnly.Abbreviation)),
69
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Wrapped.Name, string.Format(
SR
.HelpWrappedFormat, CommandProcessorOptions.Switches.Wrapped.Abbreviation)),
70
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Update.Name,
SR
.ParametersWebServiceReferenceName, string.Format(
SR
.HelpUpdateWebServiceReferenceFormat, CommandProcessorOptions.Switches.Update.Abbreviation)),
71
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.RuntimeIdentifier.Name,
SR
.ParametersRuntimeIdentifier, string.Format(
SR
.HelpRuntimeIdentifierFormat, CommandProcessorOptions.Switches.RuntimeIdentifier.Abbreviation)),
72
ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.TargetFramework.Name,
SR
.ParametersTargetFramework, string.Format(
SR
.HelpTargetFrameworkFormat, CommandProcessorOptions.Switches.TargetFramework.Abbreviation)),
73
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.AcceptCertificate.Name, string.Format(
SR
.HelpAcceptCertificateFormat, CommandProcessorOptions.Switches.AcceptCertificate.Abbreviation)),
74
ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.ServiceContract.Name, string.Format(
SR
.HelpServiceContractFormat, CommandProcessorOptions.Switches.ServiceContract.Abbreviation))
83
HelpCategory helpCategory = new HelpCategory(
SR
.HelpExamples);
86
WriteExample(
SR
.HelpExamples2,
SR
.HelpExamples3);
87
WriteExample(
SR
.HelpExamples8,
SR
.HelpExamples9);
88
WriteExample(
SR
.HelpExamples10,
SR
.HelpExamples11);
252
s_helpBuilder.AppendLine(
SR
.HelpOptions);
ImportModule.cs (2)
171
ToolConsole.WriteWarning(string.Format(CultureInfo.CurrentCulture,
SR
.WrnCouldNotGenerateContractOperationsFormat, importer1, importer2));
219
throw new ToolRuntimeException(
SR
.ErrUnableToLoadInputs, e);
OutputPathHelper.cs (4)
80
throw new ToolRuntimeException(string.Format(
SR
.ErrCannotCreateDirectoryFormat, directoryPath), e);
94
throw new ToolArgumentException(string.Format(
SR
.ErrPathTooLongFormat, path, CommandProcessorOptions.Switches.OutputDirectory.Name, option), ptle);
98
throw new ToolArgumentException(string.Format(
SR
.ErrPathTooLongDirOnlyFormat, path, CommandProcessorOptions.Switches.OutputDirectory.Name), ptle);
104
throw new ToolArgumentException(string.Format(
SR
.ErrInvalidPathFormat, path, option), e);
Tool.cs (6)
148
throw new ToolArgumentException(
SR
.ErrUnexpectedError);
213
ToolConsole.WriteLine(string.Format(
SR
.RetreivingMetadataMsgFormat, serviceDescriptor.MetadataUrl.AbsoluteUri));
217
var displayUri = serviceDescriptor.MetadataFiles.Count() == 1 ? serviceDescriptor.MetadataFiles.First().LocalPath :
SR
.WsdlOrSchemaFilesMsg;
218
ToolConsole.WriteLine(string.Format(
SR
.ReadingMetadataMessageFormat, displayUri));
246
ToolConsole.WriteLine(
SR
.GeneratingFiles);
378
ToolConsole.WriteError(
SR
.ErrUnexpectedError);
ToolConsole.cs (9)
45
toolError.AppendLine(string.Format(
SR
.WrnWSMExFailedFormat, me.ServiceUri?.AbsoluteUri));
53
toolError.AppendLine(string.Format(
SR
.MoreHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation));
62
WriteError(errMsg,
SR
.ErrorPrefix, isTrace);
67
WriteError(Utils.GetExceptionMessage(e),
SR
.ErrorPrefix);
93
if (message != null && !message.StartsWith(
SR
.WarningPrefix, StringComparison.CurrentCulture))
95
message = string.Format(CultureInfo.CurrentCulture, "{0} {1}",
SR
.WarningPrefix, message);
219
ToolConsole.WriteLine(string.Format(
SR
.LogoFormat, Tool.ToolName, Tool.PackageVersion,
SR
.Microsoft_Copyright_CommandLine_Logo), LogTag.Important);
223
ToolConsole.WriteLine(
SR
.TelemetryEnabled, LogTag.Information);
ToolMexException.cs (2)
19
: base(string.Format(
SR
.ErrUnableToRetrieveMetadataFromUriFormat, serviceUri.AbsoluteUri,
SR
.EnableMetadataHelpMessage))
TypeLoader.cs (3)
33
ToolConsole.WriteWarning(string.Format(
SR
.ErrUnableToLoadReferenceFormat, path, ex.Message));
71
warning = string.Format(
SR
.ErrCouldNotLoadTypesFromAssemblyAtFormat, assembly.Location);
80
warning = string.Format(
SR
.WrnCouldNotLoadTypesFromReferenceAssemblyAtFormat, assembly.Location);