196 references to SR
dotnet-svcutil.xmlserializer (196)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (12)
176throw new ArgumentException(SR.Format(SR.ErrSwitchMissing, arg)); 187throw new ArgumentException(SR.Format(SR.ErrUnexpectedDelimiter)); 215throw new ArgumentException(SR.Format(SR.ErrUnknownSwitch, arg.ToLower(CultureInfo.InvariantCulture))); 223throw new ArgumentException(SR.Format(SR.ErrUnexpectedValue, arg.ToLower(CultureInfo.InvariantCulture))); 228throw new ArgumentException(SR.Format(SR.ErrExpectedValue, arg.ToLower(CultureInfo.InvariantCulture))); 235throw new ArgumentException(SR.Format(SR.ErrSingleUseSwitch, arg.ToLower(CultureInfo.InvariantCulture)));
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (28)
48throw new ToolArgumentException(SR.Format(SR.ErrNoValidInputFilesSpecified)); 99throw new ToolInputException(SR.Format(SR.ErrUnableToLoadFile, path), e); 104throw new ToolInputException(SR.Format(SR.ErrInvalidInputPath, path)); 115throw new ToolInputException(SR.Format(SR.ErrInputFileNotAssemblyOrMetadata, fileInfo.FullName, path)); 171throw new ToolInputException(SR.Format(SR.ErrDirectoryNotFound, dirInfo.FullName)); 176throw new ToolInputException(SR.Format(SR.ErrDirectoryInsteadOfFile, path)); 180throw new ToolInputException(SR.Format(SR.ErrNoFilesFound, path)); 193return new ToolInputException(SR.Format(SR.ErrInputConflictsWithTarget, Options.Cmd.Target, _options.ModeSettingValue, inputSrc)); 197return new ToolInputException(SR.Format(SR.ErrInputConflictsWithOption, modeSettingStr, inputSrc)); 204return new ToolInputException(SR.Format(SR.ErrConflictingInputs, _options.ModeSettingValue, inputSrc)); 208return new ToolInputException(SR.Format(SR.ErrInputConflictsWithMode, inputSrc)); 227throw new ToolInputException(SR.Format(SR.ErrAssemblyLoadFailed, path), e); 240ToolConsole.WriteWarning(SR.Format(SR.WrnCouldNotLoadTypesFromReferenceAssemblyAt, assembly.Location)); 249throw new ToolInputException(SR.Format(SR.ErrCouldNotLoadTypesFromAssemblyAt, assembly.Location));
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (24)
208throw new ToolArgumentException(SR.Format(SR.ErrInvalidPath, directoryArgValue, Options.Cmd.Directory), e); 222throw new ToolOptionException(SR.Format(SR.ErrDirectoryPointsToAFile, arg, value)); 232throw new ToolOptionException(SR.Format(SR.ErrDirectoryContainsInvalidCharacters, arg, value, invalidCharacter)); 270throw new ToolOptionException(SR.Format(SR.ErrInvalidNamespaceArgument, Options.Cmd.Namespace, namespaceMapping)); 279throw new ToolOptionException(SR.Format(SR.ErrCannotSpecifyMultipleMappingsForNamespace, 316throw new ToolOptionException(SR.Format(SR.ErrOptionConflictsWithTarget, Options.Cmd.Target, _parent.ModeSettingValue, optionStr)); 321throw new ToolOptionException(SR.Format(SR.ErrOptionModeConflict, optionStr, modeSettingStr)); 326throw new ToolOptionException(SR.Format(SR.ErrAmbiguousOptionModeConflict, optionStr)); 368throw new ToolOptionException(SR.Format(SR.ErrDuplicateReferenceValues, Options.Cmd.Reference, assembly.Location)); 377ToolConsole.WriteWarning(SR.Format(SR.ErrCouldNotLoadReferenceAssemblyAt, path)); 388throw new ToolOptionException(SR.Format(SR.ErrDuplicateValuePassedToTypeArg, cmd, typeArg)); 496throw new ToolOptionException(SR.Format(SR.ErrCannotDisambiguateSpecifiedTypes,
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (10)
83throw new ToolArgumentException(SR.Format(SR.ErrPathTooLong, path, Options.Cmd.Directory, option), ptle); 87throw new ToolArgumentException(SR.Format(SR.ErrPathTooLongDirOnly, path, Options.Cmd.Directory), ptle); 96throw new ToolArgumentException(SR.Format(SR.ErrInvalidPath, path, option), e); 115throw new ToolRuntimeException(SR.Format(SR.ErrCannotCreateDirectory, path), e); 145throw new ToolRuntimeException(SR.Format(SR.ErrUnableToUniquifyFilename, fileNameWithExtension), null);
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (106)
48WriteError(errMsg, SR.Format(SR.Error)); 53WriteError(e, SR.Format(SR.Error)); 58WriteError(SR.Format(SR.ErrUnexpectedError)); 64WriteError(SR.Format(SR.ErrUnexpectedError)); 73ToolConsole.WriteLine(SR.Format(SR.MoreHelp, Options.Abbr.Help)); 83Console.Error.Write(SR.Format(SR.Warning)); 121ToolConsole.WriteLine(SR.Format(SR.Logo, ThisAssembly.InformationalVersion, SR.WcfTrademarkForCmdLine, SR.CopyrightForCmdLine)); 147ToolConsole.WriteLine(SR.Format(SR.HelpUsage1)); 149ToolConsole.WriteLine(SR.Format(SR.HelpUsage6)); 154HelpCategory helpCategory = new HelpCategory(SR.Format(SR.HelpXmlSerializerTypeGenerationCategory)); 156helpCategory.Description = SR.Format(SR.HelpXmlSerializerTypeGenerationDescription, ThisAssembly.Title); 157helpCategory.Syntax = SR.Format(SR.HelpXmlSerializerTypeGenerationSyntax, ThisAssembly.Title, SR.Format(SR.HelpInputAssemblyPath)); 161helpCategory.Inputs[0] = ArgumentInfo.CreateInputHelpInfo(SR.Format(SR.HelpInputAssemblyPath)); 162helpCategory.Inputs[0].HelpText = SR.Format(SR.HelpXmlSerializerTypeGenerationSyntaxInput1); 166helpCategory.Options[0] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Reference, SR.Format(SR.ParametersReference)); 167helpCategory.Options[0].HelpText = SR.Format(SR.HelpXmlSerializerTypeGenerationSyntaxInput2, Options.Abbr.Reference); 169helpCategory.Options[1] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.ExcludeType, SR.Format(SR.ParametersExcludeType)); 170helpCategory.Options[1].HelpText = SR.Format(SR.HelpXmlSerializerTypeGenerationSyntaxInput3, Options.Abbr.ExcludeType); 172helpCategory.Options[2] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Out, SR.Format(SR.ParametersOut)); 173helpCategory.Options[2].HelpText = SR.Format(SR.HelpXmlSerializerTypeGenerationSyntaxInput4, Options.Abbr.Out); 180HelpCategory helpCategory = new HelpCategory(SR.Format(SR.HelpCommonOptionsCategory)); 184option = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Directory, SR.Format(SR.ParametersDirectory)); 185option.HelpText = SR.Format(SR.HelpDirectory, Options.Abbr.Directory); 189option.HelpText = SR.Format(SR.HelpNologo); 193option.HelpText = SR.Format(SR.HelpHelp, Options.Abbr.Help); 202HelpCategory helpCategory = new HelpCategory(SR.Format(SR.HelpCodeGenerationCategory)); 204helpCategory.Description = SR.Format(SR.HelpCodeGenerationDescription, ThisAssembly.Title); 205helpCategory.Syntax = SR.Format(SR.HelpCodeGenerationAbbreviationSyntax, ThisAssembly.Title, Options.Abbr.Target, Options.Targets.Code, 206SR.Format(SR.HelpInputMetadataDocumentPath), SR.Format(SR.HelpInputUrl), SR.Format(SR.HelpInputEpr)); 210helpCategory.Inputs[0] = ArgumentInfo.CreateInputHelpInfo(SR.Format(SR.HelpInputMetadataDocumentPath)); 211helpCategory.Inputs[0].HelpText = SR.Format(SR.HelpCodeGenerationSyntaxInput1); 213helpCategory.Inputs[1] = ArgumentInfo.CreateInputHelpInfo(SR.Format(SR.HelpInputUrl)); 214helpCategory.Inputs[1].HelpText = SR.Format(SR.HelpCodeGenerationSyntaxInput2); 216helpCategory.Inputs[2] = ArgumentInfo.CreateInputHelpInfo(SR.Format(SR.HelpInputEpr)); 217helpCategory.Inputs[2].HelpText = SR.Format(SR.HelpCodeGenerationSyntaxInput3); 221helpCategory.Options[0] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Out, SR.Format(SR.ParametersOut)); 222helpCategory.Options[0].HelpText = SR.Format(SR.HelpOut, Options.Abbr.Out); 224helpCategory.Options[1] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Namespace, SR.Format(SR.ParametersNamespace)); 225helpCategory.Options[1].HelpText = SR.Format(SR.HelpNamespace, Options.Abbr.Namespace); 227helpCategory.Options[2] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.Reference, SR.Format(SR.ParametersReference)); 229helpCategory.Options[2].HelpText = SR.Format(SR.HelpReferenceCodeGeneration, Options.Abbr.Reference); 231helpCategory.Options[3] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.CollectionType, SR.Format(SR.ParametersCollectionType)); 232helpCategory.Options[3].HelpText = SR.Format(SR.HelpCollectionType, Options.Abbr.CollectionType); 234helpCategory.Options[4] = ArgumentInfo.CreateParameterHelpInfo(Options.Cmd.ExcludeType, SR.Format(SR.ParametersExcludeType)); 235helpCategory.Options[4].HelpText = SR.Format(SR.HelpExcludeTypeCodeGeneration, Options.Abbr.ExcludeType); 238helpCategory.Options[5].HelpText = SR.Format(SR.HelpNostdlib); 245HelpCategory helpCategory = new HelpCategory(SR.Format(SR.HelpExamples)); 248WriteExample(SR.HelpExamples1, SR.HelpExamples2); 424ToolConsole.WriteLine(SR.Format(SR.HelpOptions));
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntime.cs (5)
31ToolConsole.WriteWarning(System.SR.WrnToolIsUsedDirectly); 38Tool.Assert(_options.GetToolMode().HasValue, System.SR.Format(System.SR.AmbiguousToolUseage)); 51ToolConsole.WriteLine(System.SR.Format(System.SR.GeneratingSerializer));
Microsoft\Tools\ServiceModel\SvcUtil\TypeResolver.cs (2)
72throw new TypeResolver.Exception(SR.Format(SR.ErrAmbiguityInAssemblyNames, assemblyName.FullName, match.FullName, refAssembly.FullName));
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (9)
35ToolConsole.WriteWarning(SR.Format(SR.WrnOptionConflictsWithInput, Options.Cmd.Out)); 53ToolConsole.WriteWarning(SR.Format(SR.WrnNoServiceContractTypes, assembly.GetName().CodeBase)); 58ToolConsole.WriteWarning(SR.Format(SR.WrnNoXmlSerializerOperationBehavior, assembly.GetName().CodeBase)); 80throw new ToolRuntimeException(SR.GenerateSerializerNotFound); 124ToolConsole.WriteWarning(SR.Format(SR.WrnUnableToLoadContractForSGen, contractType, errorMessage));