442 references to SR
PresentationBuildTasks (442)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (6)
46: base(SR.SharedResourceManager) 115message = SR.Format(SR.UnknownBuildError, message); 125Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 271Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), targetType); 282Log.LogErrorWithCodeFromResources(nameof(SR.InvalidCulture), Culture);
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
63: base(SR.SharedResourceManager)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (23)
61public MarkupCompilePass1( ) : base(SR.SharedResourceManager) 123Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 130Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 144Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult); 154Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]); 174Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 188message = SR.Format(SR.UnknownBuildError, message); 197Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 210Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1)); 899Log.LogErrorWithCodeFromResources(nameof(SR.MultipleSplashScreenImages)); 920Log.LogErrorWithCodeFromResources(nameof(SR.AppDefIsNotRequired)); 935Log.LogErrorWithCodeFromResources(nameof(SR.MutlipleApplicationFiles)); 940Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile); 944Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), ApplicationFile); 979Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType); 997Log.LogErrorWithCodeFromResources(nameof(SR.WrongLocalizationPropertySetting_Pass1)); 1039Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), filePath); 1131Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath); 1201Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 1202Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 1476Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec); 1485Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (17)
47public MarkupCompilePass2( ) : base(SR.SharedResourceManager) 85Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 92Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 129Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 142message = SR.Format(SR.UnknownBuildError, message); 152Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 201Log.LogMessageFromResources(nameof(SR.CompileSucceed_Pass2)); 560Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile)); 561Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 573Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile); 588Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile); 623Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 679Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile); 726Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 745Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 823Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType);
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (4)
37public MergeLocalizationDirectives() : base(SR.SharedResourceManager) 68Log.LogMessageFromResources(nameof(SR.CommentFileGenerating), _outputFile); 84Log.LogMessageFromResources(nameof(SR.CommentFileGenerated), _outputFile); 101Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (12)
54throw new ApplicationException(SR.Format(SR.ResourceTooBig, _sourcePath, System.Int32.MaxValue)); 125: base(SR.SharedResourceManager) 160Log.LogErrorWithCodeFromResources(nameof(SR.MoreResourcesFiles)); 174Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerating), resourcesFile); 188Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReadResourceFile), resFileName); 189Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourceId), resourceId); 196Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerated), resourcesFile); 212message = SR.Format(SR.UnknownBuildError, message); 221Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 300Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), strFileName);
Microsoft\Build\Tasks\Windows\UidManager.cs (15)
50public UidManager() : base(SR.SharedResourceManager) 74Log.LogErrorWithCodeFromResources(nameof(SR.SourceFileNameNeeded)); 84Log.LogErrorWithCodeFromResources(nameof(SR.BadUidTask), _taskAsString); 110message = SR.Format(SR.UnknownBuildError, message); 120Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 208Log.LogMessageFromResources(nameof(SR.CheckingUids), inputFile.ItemSpec); 336Log.LogMessageFromResources(nameof(SR.FilesRemovedUid), countGoodFiles); 340Log.LogMessageFromResources(nameof(SR.FilesUpdatedUid), countGoodFiles); 344Log.LogMessageFromResources(nameof(SR.FilesPassedUidCheck), countGoodFiles); 348Log.LogErrorWithCodeFromResources(nameof(SR.FilesFailedUidCheck), _markupFiles.Length - countGoodFiles); 400Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath); 406Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath); 441nameof(SR.UidMissing), currentUid.ElementName 458nameof(SR.MultipleUidUse), currentUid.Value, currentUid.ElementName
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (2)
41: base(SR.SharedResourceManager) 146Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
MS\Internal\MarkupCompiler\MarkupCompiler.cs (43)
238OnError(new Exception(SR.Format(SR.UnknownLanguage, cu.Language))); 461ThrowCompilerException(nameof(SR.InvalidMarkupFile)); 466ThrowCompilerException(nameof(SR.FileNotFound), sourceFile.Path); 721string message = SR.GetResourceString(id); 727string message = SR.Format(SR.GetResourceString(id), value); 733string message = SR.Format(SR.GetResourceString(id), value1, value2); 739string message = SR.Format(SR.GetResourceString(id), value1, value2, value3); 745string message = SR.Format(SR.GetResourceString(id), value1, value2, value3, value4); 797ThrowCompilerException(nameof(SR.DefnTagsCannotBeNested), DefinitionNSPrefix, LocalName, xmlReader.LocalName); 806ThrowCompilerException(nameof(SR.MissingClassDefinitionForCodeTag), 819ThrowCompilerException(nameof(SR.AttributeNotAllowedOnCodeTag), 831ThrowCompilerException(nameof(SR.UnknownDefinitionTag), DefinitionNSPrefix, LocalName); 869ThrowCompilerException(nameof(SR.IllegalCDataTextScoping), DefinitionNSPrefix, LocalName, (currNodeType == XmlNodeType.CDATA ? "a CDATA section" : "text content")); 1360string message = SR.Format(SR.WinFXAssemblyMissing, asmMissing); 1462ThrowCompilerException(nameof(SR.UnknownGenericType), 1539ThrowCompilerException(nameof(SR.InvalidDefaultCLRNamespace), nsPart, ns); 1556ThrowCompilerException(nameof(SR.MissingClassDefinitionForEvent), _ccRoot.ElementName, DefinitionNSPrefix, eventName); 1562ThrowCompilerException(nameof(SR.EmptyEventStringNotAllowed), eventName, handlerName); 1566ThrowCompilerException(nameof(SR.InvalidEventHandlerName), eventName, handlerName); 1651ThrowCompilerException(nameof(SR.MissingClassWithFieldModifier), DefinitionNSPrefix); 1680ThrowCompilerException(nameof(SR.UnknownFieldModifier), MarkupCompiler.DefinitionNSPrefix, modifier, _language); 1712ThrowCompilerException(nameof(SR.UnknownFieldModifier), MarkupCompiler.DefinitionNSPrefix, modifier, _language); 1745ThrowCompilerException(nameof(SR.UnknownClassModifier), MarkupCompiler.DefinitionNSPrefix, modifier, _language); 1918ThrowCompilerException(nameof(SR.RoutedEventNotRegistered), miEvent.DeclaringType.FullName, eventName, eventHandler); 1999ThrowCompilerException(nameof(SR.UnknownEventAttribute), mei.eventName, mei.eventHandler, eventTargetName); 2203nameof(SR.NamedResDictItemWarning), 2279ThrowCompilerException(nameof(SR.InvalidTypeName), 2382ThrowCompilerException(nameof(SR.ContainingTagNotGeneric), eventName, ctrConstructedType.BaseType, refTypeFullName); 2412ThrowCompilerException(nameof(SR.MatchingTypeArgsNotFoundInRefType), 2513ThrowCompilerException(nameof(SR.InvalidBaseClassName), baseClassName); 2518ThrowCompilerException(nameof(SR.InvalidBaseClassNamespace), bns, baseClassName); 2663throw new AssemblyVersionParseException(SR.Format(SR.InvalidAssemblyVersion, AssemblyVersion)); 3023ThrowCompilerException(nameof(SR.MissingClassWithSubClass), DefinitionNSPrefix); 3027ThrowCompilerException(nameof(SR.MissingClassWithModifier), DefinitionNSPrefix); 3032ThrowCompilerException(nameof(SR.MissingClassDefinitionForTypeArgs), rootClassName, DefinitionNSPrefix); 3038ThrowCompilerException(nameof(SR.SubSubClassingNotAllowed), elementType.FullName);
MS\Internal\MarkupCompiler\ParserExtension.cs (9)
82ThrowException(nameof(SR.ParserNoSerializer), 140ThrowException(nameof(SR.LocalNamePropertyNotAllowed), 404MarkupCompiler.ThrowCompilerException(nameof(SR.DefinitionTagNotAllowedAtRoot), 463MarkupCompiler.ThrowCompilerException(nameof(SR.UnknownGenericType), 656ThrowException(nameof(SR.FieldModifierNotAllowed), 831ThrowException(nameof(SR.DefinitionAttributeNotAllowed), 842ThrowException(nameof(SR.InvalidClassName), 857ThrowException(nameof(SR.UnknownClassModifier), 872ThrowException(nameof(SR.InvalidClassName),
MS\Internal\Tasks\CompilerWrapper.cs (5)
306message = SR.Format(SR.InvalidXml, message); 312errorText = SR.Format(SR.UnknownBuildError, errorText); 362_taskLogger.LogMessageFromResources(MessageImportance.Low, nameof(SR.FileResolved), sourceFileInfo.OriginalFilePath, newRelativeFilePath, newSourceDir);
MS\Internal\Tasks\TaskHelper.cs (2)
54log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskLogo), taskName, avalonFileVersion); 55log.LogMessageFromResources(MessageImportance.Low, nameof(SR.TaskRight));
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\ParserStreamGeometryContext.cs (1)
716throw new ArgumentException(SR.UnknownPathOperationType);
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\ParsersCommon.cs (5)
139throw new FormatException(SR.Parsers_IllegalToken); 196throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, _curIndex - 1)); 435throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, start), except);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (10)
117throw new FormatException(SR.Format(SR.InvalidLocCommentTarget, input)); 145throw new FormatException(SR.Format(SR.InvalidLocCommentValue, currentPair.PropertyName, input)); 171throw new FormatException(SR.Format(SR.InvalidLocCommentValue, currentPair.PropertyName, input)); 193throw new FormatException(SR.Format(SR.UnmatchedLocComment, input)); 267throw new FormatException(SR.Format(SR.InvalidLocalizabilityValue, value));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (4)
770throw new InvalidOperationException(SR.ParserMultiBamls); 2606throw new XamlParseException(SR.Format(SR.ParserBadString, Value, ValueType.Name)); 4350throw new XamlParseException(SR.ParserTooManyAssemblies);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (3)
356XamlParser.ThrowException(nameof(SR.ParserBadKey), 793XamlParser.ThrowException(nameof(SR.ParserBadKey), 1572XamlParser.ThrowException(nameof(SR.ParserNoDictionaryKey),
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5538MarkupCompiler.ThrowCompilerException(nameof(SR.ParserInvalidKnownType), ((int)knownElement).ToString(CultureInfo.InvariantCulture), knownElement.ToString());
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (24)
581ThrowException(nameof(SR.ParserNotMarkupExtension), attributeValue, typename, 596ThrowException(nameof(SR.ParserNotMarkupExtension), attributeValue, typename, 1045ThrowException(nameof(SR.ParserMarkupExtensionInvalidClosingBracketCharacers), args[i].ToString(), lineNumber, linePosition); 1064ThrowException(nameof(SR.ParserMarkupExtensionNoQuotesInName), args, 1089ThrowException(nameof(SR.ParserMarkupExtensionMalformedBracketCharacers), bracketCharacterStack.Peek().ToString(), lineNumber, linePosition); 1095ThrowException(nameof(SR.ParserMarkupExtensionDelimiterBeforeFirstAttribute), args, 1103ThrowException(nameof(SR.ParserMarkupExtensionBadDelimiter), args, 1133ThrowException(nameof(SR.ParserMarkupExtensionBadDelimiter), args, 1165ThrowException(nameof(SR.ParserMarkupExtensionNoEndCurlie), "}", lineNumber, linePosition); 1170ThrowException(nameof(SR.ParserMarkupExtensionTrailingGarbage), "}", 1245ThrowException(nameof(SR.ParserMarkupExtensionBadConstructorParam), data.Args, 1317ThrowException(nameof(SR.ParserBadConstructorParams), data.TargetType.Name, 1349ThrowException(nameof(SR.ParserMarkupExtensionNoNameValue), data.Args, 1361ThrowException(nameof(SR.ParserDuplicateMarkupExtensionProperty), propertyName, data.LineNumber, data.LinePosition); 1515ThrowException(nameof(SR.ParserPrefixNSProperty), prefix, name, lineNumber, linePosition); 1531ThrowException(nameof(SR.ParserMarkupExtensionUnknownAttr), localName, 1692string message = SR.Format(SR.GetResourceString(id), parameter1); 1706string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2); 1721string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3); 1734message += SR.Format(SR.ParserLineAndOffset,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (20)
128ThrowException(nameof(SR.StyleTagNotSupported), xamlNode.TokenType.ToString(), 180ThrowException(nameof(SR.StyleKnownTagWrongLocation), 450ThrowException(nameof(SR.ParserCantSetTriggerCondition), 460ThrowException(nameof(SR.ParserCantSetAttribute), 480ThrowException(nameof(SR.StyleNoPropOrEvent), 489ThrowException(nameof(SR.StyleNoTarget), 643ThrowException(nameof(SR.StyleImpliedAndComplexChildren), 654ThrowException(nameof(SR.StyleNoTopLevelElement), 713ThrowException(nameof(SR.ParserNoSetterChild), 749ThrowException(nameof(SR.ParserNoSerializer), 957ThrowException(nameof(SR.StyleUnknownProp), xamlNode.PropName, 1037ThrowException(nameof(SR.StyleImpliedAndComplexChildren), 1047ThrowException(nameof(SR.StyleUnknownProp), xamlNode.PropName, 1124ThrowException(nameof(SR.StyleUnknownProp), xamlPropertyIDictionaryStartNode.PropName, 1189ThrowException(nameof(SR.StyleTextNotSupported), xamlTextNode.Text, 1206ThrowException(nameof(SR.StyleTargetNoEvents), 1341ThrowException(nameof(SR.TargetNameNotSupportedForStyleSetters), 1372ThrowException(nameof(SR.SourceNameNotSupportedForStyleTriggers), 1378ThrowException(nameof(SR.TargetNameNotSupportedForStyleSetters), 1429ThrowException(nameof(SR.ParserNoType),
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (15)
116ThrowException(nameof(SR.TemplateTagNotSupported), xamlNode.TokenType.ToString(), 205ThrowException(nameof(SR.TemplateKnownTagWrongLocation), 473ThrowException(nameof(SR.TemplateNoTriggerTarget), 508ThrowException(nameof(SR.ParserCantSetTriggerCondition), 518ThrowException(nameof(SR.ParserCantSetAttribute), 537ThrowException(nameof(SR.TemplateNoProp), 545ThrowException(nameof(SR.TemplateNoTarget), 750ThrowException(nameof(SR.ParserNoSerializer), 834ThrowException(nameof(SR.TemplateNoMultipleRoots), 849ThrowException(nameof(SR.TemplateInvalidRootElementTag), 1035ThrowException(nameof(SR.TemplateUnknownProp), xamlNode.PropName, 1126ThrowException(nameof(SR.TemplateUnknownProp), xamlNode.PropName, 1236ThrowException(nameof(SR.TemplateUnknownProp), xamlPropertyIDictionaryStartNode.PropName, 1320ThrowException(nameof(SR.TemplateTextNotSupported), xamlTextNode.Text, 1484ThrowException(nameof(SR.TemplateDupName), xamlPropertyNode.Value,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (28)
233newMessage = $"{e.Message} {SR.Format(SR.ParserLineAndOffset, 573ThrowException(nameof(SR.ParserUnknownTag), 588ThrowException(nameof(SR.ParserUnknownTag), 673ThrowException(nameof(SR.ParserUnknownAttribute), 724ThrowException(nameof(SR.ParserNoType), 778ThrowException(nameof(SR.ParserMapPIMissingKey), xamlPIMappingNode.LineNumber, xamlPIMappingNode.LinePosition); 798ThrowException(nameof(SR.ParserNoEvents), 899ThrowException(nameof(SR.ParserDefTag), 933ThrowException(nameof(SR.ParserNoBamlAsync), "Async", 942ThrowException(nameof(SR.ParserNoBamlAsync), xamlDefAttributeNode.Name, 960string message = SR.Format(SR.ParserBadUidOrNameME, attributeValue); 962message += SR.Format(SR.ParserLineAndOffset, 987errorID = nameof(SR.ParserUnknownDefAttribute); 1136ThrowException(nameof(SR.ParserBadSyncMode), 1413string message = SR.GetResourceString(id); 1420string message = SR.Format(SR.GetResourceString(id), value); 1427string message = SR.Format(SR.GetResourceString(id), value1, value2); 1433string message = SR.Format(SR.GetResourceString(id), value1, value2, value3); 1439string message = SR.Format(SR.GetResourceString(id), value1, value2, value3, value4); 1446message += SR.Format(SR.ParserLineAndOffset,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (81)
1103ThrowException(nameof(SR.ParserDuplicateProperty1), usageProp.FullName); 1107ThrowException(nameof(SR.ParserDuplicateProperty2), 1222ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1269ThrowException(nameof(SR.ParserTextInComplexProp), 1319ThrowException(nameof(SR.ParserUnknownXmlType), 1350string message = SR.GetResourceString(id); 1357string message = SR.Format(SR.GetResourceString(id), parameter); 1363string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2); 1369string message = SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3); 1386messageWithLineNumber += SR.Format(SR.ParserLineAndOffset, 1410message += SR.Format(SR.ParserLineAndOffset, 1731ThrowException(nameof(SR.ParserMetroUnknownAttribute), 1852ThrowException(nameof(SR.ParserAttributeNamespaceMisMatch), 2102ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2347ThrowException(nameof(SR.ParserUndeclaredNS), String.Empty); 2366ThrowException(nameof(SR.ParserMappingUriInvalid), mappingUri); 2742ThrowException(nameof(SR.ParserPrefixNSProperty), prefix, name); 2917SR.Format(SR.ParserUnknownAttribute, 2986ThrowException(nameof(SR.ParserSyncOnRoot)); 2996ThrowException(nameof(SR.ParserAsyncOnRoot)); 3010ThrowException(nameof(SR.ParserNoNameOnType), parentType.Name); 3086ThrowException(nameof(SR.ParserNoType), typeName); 3110ThrowException(nameof(SR.ParserNoDictionaryName)); 3124ThrowException(nameof(SR.ParserNoDictionaryName)); 3150ThrowException(nameof(SR.ParserDupDictionaryKey), attribValue); 3221ThrowExceptionWithLine(SR.Format(SR.ParserReadOnlyProp, attribLocalName)); 3227ThrowException(nameof(SR.ParserCantSetAttribute), "property", $"{declaringType.Name}.{attribLocalName}", "set"); 3287ThrowException(nameof(SR.ParserNoNameOnType), parentType.Name); 3470ThrowException(nameof(SR.ParserNoNameUnderDefinitionScopeType), attributeValue, elementName, _definitionScopeType.Name); 3602ThrowException(nameof(SR.ParserNoNestedXmlDataIslands)); 3620ThrowException(nameof(SR.ParserXmlIslandMissing), GrandParentContext.ChildTagLocalName); 3623ThrowException(nameof(SR.ParserNoNamespace), localName); 3627ThrowException(nameof(SR.ParserPrefixNSElement), prefix, localName); 3682ThrowException(nameof(SR.ParserNoEventTag), localName); 3731ThrowException(nameof(SR.ParserXmlIslandMissing), GrandParentContext.ChildTagLocalName); 3819ThrowException(nameof(SR.ParserEntityReference), localName); 3855ThrowException(nameof(SR.ParserXmlIslandUnexpected), GrandParentContext.ChildTagLocalName); 3907ThrowException(nameof(SR.ParserCantSetAttribute), "property", propName, "set"); 3913ThrowException(nameof(SR.ParserCantGetProperty), propName); 3959ThrowException(nameof(SR.ParserNestedComplexProp), complexPropName); 3977ThrowException(nameof(SR.ParserNoPropOnComplexProp)); 4013ThrowExceptionWithLine(SR.Format(SR.ParserReadOnlyProp, 4019ThrowException(nameof(SR.ParserCantSetAttribute), "property", complexPropName, "set"); 4055ThrowExceptionWithLine(SR.Format(SR.ParserReadOnlyProp, 4062ThrowException(nameof(SR.ParserCantGetProperty), complexPropName); 4066ThrowException(nameof(SR.ParserCantSetAttribute), "property", complexPropName, "set"); 4114ThrowException(nameof(SR.ParserEmptyComplexProp), complexPropName); 4130ThrowException(nameof(SR.ParserPropNoValue), dynamicObjectName); 4204ThrowException(nameof(SR.ParserIEnumerableIAddChild), 4296ThrowException(nameof(SR.ParserNoAttrArray)); 4355throw new InvalidOperationException(SR.Format(SR.ParserCanOnlyHaveOneChild, 4408ThrowException(nameof(SR.ParserBadChild), ParentContext.ChildTagLocalName, 4456ThrowException(nameof(SR.ParserContentMustBeContiguous)); 4584ThrowException(nameof(SR.ParserInvalidContentPropertyAttribute), elementType.FullName, 4613ThrowException(nameof(SR.ParserCantSetContentProperty), contentPropertyName, elementType.Name); 4658ThrowException(nameof(SR.ParserCannotAddAnyChildren), parentType.FullName); 4671ThrowException(nameof(SR.ParserBadTypeInArrayProperty), 4685ThrowException(nameof(SR.ParserNoChildrenTag), ParentContext.ContextData.ToString()); 4775ThrowException(nameof(SR.ParserDefaultConverterElement), elementType.FullName, textValue); 4793ThrowException(nameof(SR.ParserDefaultConverterElement), elementType.FullName, textValue); 5031ThrowException(nameof(SR.ParserTextInComplexProp), 5125ThrowException(nameof(SR.ParserTextInvalidInArrayOrDictionary), 5245ThrowException(nameof(SR.ParserXmlReaderNoLineInfo), 6025throw new InvalidOperationException(SR.Format(SR.ParserAbandonedTypeConverterText,_typeConverterTextWrittenAndNotProcessed)); 6041throw new InvalidOperationException(SR.Format(SR.ParserTypeConverterTextUnusable,initializationText)); 6167throw new InvalidOperationException(SR.Format(SR.ParserTypeConverterTextNeedsEndElement, _typeConverterTextWrittenAndNotProcessed)); 6621throw new InvalidOperationException(SR.Format(SR.ParserCanOnlyHaveOneChild,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlSerializer.cs (3)
59throw new InvalidOperationException(SR.InvalidDeSerialize); 101throw new InvalidOperationException(SR.InvalidCustomSerialize); 112throw new InvalidOperationException(SR.InvalidCustomSerialize);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (37)
195ThrowException(nameof(SR.ParserBadAssemblyPath)); 200ThrowException(nameof(SR.ParserBadAssemblyName)); 688ThrowException(nameof(SR.ParserBadName), value); 693string message = SR.Format(SR.ParserBadUidOrNameME, value); 695message += SR.Format(SR.ParserLineAndOffset, 706ThrowException(nameof(SR.ParserBadName), value); 739ThrowException(nameof(SR.ParserNoDigitEnums), propName, attribValue); 1298ThrowException(nameof(SR.ParserCantSetAttribute), "bubbling event", $"{objectType.Name}.{localName}", "Add Handler method"); 1321ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{objectType.Name}.{localName}"); 1332ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{objectType.Name}.{localName}", "add"); 1380ThrowException(nameof(SR.ParserCantSetAttribute), "attached property", $"{objectType.Name}.{localName}", "Set method"); 1397ThrowException(nameof(SR.ParserAttachedPropInheritError), 1457ThrowException(nameof(SR.ParserCantSetAttribute), "bubbling event", $"{owner.Name}.{localName}", "Add Handler method"); 1478ThrowException(nameof(SR.ParserEventDelegateTypeNotAccessible), ei.EventHandlerType.FullName, $"{owner.Name}.{localName}"); 1490ThrowException(nameof(SR.ParserCantSetAttribute), "event", $"{owner.Name}.{localName}", "add"); 1538ThrowException(nameof(SR.ParserCantSetAttribute), "attached property", $"{owner.Name}.{localName}", "Set method"); 1864ThrowException(nameof(SR.ParserXmlLangPropertyValueInvalid)); 2267ThrowException(nameof(SR.ParserNoType), typeName); 2280ThrowException(nameof(SR.ParserBadMemberReference), valueParam); 2300ThrowException(nameof(SR.ParserBadMemberReference), memberValue); 2347ThrowException(nameof(SR.ParserStaticMemberNotAllowed), memberName, targetType.Name); 2354ThrowException(nameof(SR.ParserInvalidStaticMember), memberName, targetType.Name); 2551ThrowException(nameof(SR.ParserPublicType), objectType.Name); 2858ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty); 2867ThrowException(nameof(SR.ParserUndeclaredNS), prefix); 2910ThrowException(nameof(SR.ParserResourceKeyType), typeString); 2936ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty); 2949ThrowException(nameof(SR.ParserUndeclaredNS), prefix); 3782ThrowExceptionWithLine(SR.GetResourceString(id), null); 3787ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter), null); 3792ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2), null); 3797ThrowExceptionWithLine(SR.Format(SR.GetResourceString(id), parameter1, parameter2, parameter3), null);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (10)
246throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsDefinitionAttribute")); 266throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsCompatibleWithAttribute")); 314throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 388throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute")); 394throw new InvalidOperationException(SR.Format(SR.ParserCompatDuplicate, oldXmlns,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (4)
143throw new ArgumentException(SR.ParserKeysAreStrings); 471throw new ArgumentException(SR.ParserKeysAreStrings); 479throw new ArgumentException(SR.ParserKeysAreStrings); 595throw new InvalidOperationException(SR.ParserDictionarySealed);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\TokenizerHelper.cs (16)
103throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str)); 124throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str)); 138throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperPrematureStringTermination, _str)); 230throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperMissingEndQuote, _str)); 241throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str)); 261throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperExtraDataEncountered, _charIndex, _str)); 279throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str)); 298throw new System.InvalidOperationException(SR.Format(SR.TokenizerHelperEmptyToken, _charIndex, _str));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (6)
348throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 361throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (32)
234Error(SR.XCRUnknownCompatElement, elementName); 275Error(SR.XCRInvalidACChild, Reader.Name); 325Error(SR.XCRChoiceNotFound); 837Error(SR.XCRCompatCycle, mappedNamespace); 967Error(SR.XCRInvalidFormat, callerContext); 977Error(SR.XCRUndefinedPrefix, prefix); 982Error(SR.XCRInvalidXMLName, pair); 1013Error(SR.XCRUndefinedPrefix, prefix); 1083Error(SR.XCRUnknownCompatAttrib, attributeName); 1167Error(SR.Format(SR.XCRInvalidACChild, Reader.Name)); 1173Error(SR.XCRChoiceNotFound); 1203Error(SR.XCRChoiceOnlyInAC); 1209Error(SR.XCRChoiceAfterFallback); 1217Error(SR.XCRRequiresAttribNotFound); 1223Error(SR.XCRInvalidRequiresAttribute); 1244Error(SR.XCRInvalidAttribInElement, attributeName, Choice); 1276Error(SR.XCRInvalidRequiresAttribute); 1319Error(SR.XCRFallbackOnlyInAC); 1325Error(SR.XCRChoiceNotFound); 1331Error(SR.XCRMultipleFallbackFound); 1349Error(SR.XCRInvalidAttribInElement, attributeName, Fallback); 1421Error(SR.XCRMustUnderstandFailed, namespaceUri); 1917_reader.Error(SR.XCRNSProcessContentNotIgnorable, key); 1929_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1941_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1972_reader.Error(SR.XCRDuplicateWildcardProcessContent, _namespaceName); 1976_reader.Error(SR.XCRDuplicateProcessContent, _namespaceName, elementName); 1984_reader.Error(SR.XCRInvalidProcessContent, _namespaceName); 2027_reader.Error(SR.XCRDuplicateWildcardPreserve, _namespaceName); 2031_reader.Error(SR.XCRDuplicatePreserve, itemName, _namespaceName); 2039_reader.Error(SR.XCRInvalidPreserve, _namespaceName);
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (1)
78throw new ArgumentException(SR.ZeroLengthFeatureID);
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\VersionPair.cs (2)
47SR.VersionNumberComponentNegative); 53SR.VersionNumberComponentNegative);