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