66 references to SR
dotnet-Microsoft.XmlSerializer.Generator (66)
Sgen.cs (66)
73errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
85errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
101errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
113errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
145errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
159errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
166errs.Add(SR.Format(SR.ErrInvalidArgument, arg));
180Console.Error.WriteLine(FormatMessage(parsableErrors, true, SR.Format(SR.Warning, err)));
188Console.Error.WriteLine(FormatMessage(parsableErrors, false, SR.Format(SR.ErrMissingRequiredArgument, SR.Format(SR.ErrAssembly, "assembly"))));
257Console.Error.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrorDetails, SR.Format(SR.ErrLoadType, typeName, assemblyName))));
278Console.WriteLine(SR.Format(SR.ImportInfo, type.Name, i + 1, types.Length));
303Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoIgnoreType, type.FullName)));
332throw new ArgumentException(SR.Format(SR.ErrDirectoryNotExists, outputDirectory));
342throw new InvalidOperationException(SR.Format(SR.ErrSerializerExists, codePath, nameof(force)));
347throw new InvalidOperationException(SR.Format(SR.ErrDirectoryExists, codePath));
375Console.Error.WriteLine(FormatMessage(parsableerrors: false, warning: false, message: SR.GenerateSerializerNotFound));
393throw new UnauthorizedAccessException(SR.Format(SR.DirectoryAccessDenied, outputDirectory));
407Console.Out.WriteLine(SR.Format(SR.InfoFileName, codePath));
408Console.Out.WriteLine(SR.Format(SR.InfoGeneratedFile, assembly.Location, codePath));
413Console.Out.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrGenerationFailed, assembly.Location)));
418Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoNoSerializableTypes, assembly.Location)));
462Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoIgnoreType, type.FullName)));
483throw new InvalidOperationException(SR.Format(SR.ErrLoadAssembly, assemblyName));
497Console.Out.WriteLine(SR.HelpDescription);
498Console.Out.WriteLine(SR.Format(SR.HelpUsage, this.GetType().Assembly.GetName().Name.Substring("dotnet-".Length)));
499Console.Out.WriteLine(SR.HelpDevOptions);
500Console.Out.WriteLine(SR.Format(SR.HelpAssembly, "-a", "--assembly"));
501Console.Out.WriteLine(SR.Format(SR.HelpType, "--type"));
502Console.Out.WriteLine(SR.Format(SR.HelpProxy, "--proxytypes"));
503Console.Out.WriteLine(SR.Format(SR.HelpForce, "--force"));
504Console.Out.WriteLine(SR.Format(SR.HelpOut, "-o", "--out"));
506Console.Out.WriteLine(SR.HelpMiscOptions);
507Console.Out.WriteLine(SR.Format(SR.HelpHelp, "-h", "--help"));