77 instantiations of BuildException
Microsoft.Maui.Controls.Build.Tasks (77)
BindablePropertyReferenceExtensions.cs (2)
15 throw new BuildException(BuildExceptionCode.BPName, iXmlLineInfo, null, bpRef.Name); 28 throw new BuildException(BuildExceptionCode.BPName, iXmlLineInfo, null, bpName, bpRef.DeclaringType);
CompiledConverters\BindablePropertyConverter.cs (4)
66 throw new BuildException(Conversion, node, null, value, typeof(BindableProperty)); 69 throw new BuildException(Conversion, node, null, value, typeof(BindableProperty)); 73 throw new BuildException(TypeResolution, node, null, typeName); 77 throw new BuildException(PropertyResolution, node, null, propertyName, typeRef.Name);
CompiledConverters\BoundsTypeConverter.cs (3)
19 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Rect)); 26 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Rect)); 54 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Rect));
CompiledConverters\BrushTypeConverter.cs (1)
43 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Brush));
CompiledConverters\ColorTypeConverter.cs (1)
75 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Color));
CompiledConverters\ColumnDefinitionCollectionTypeConverter.cs (1)
41 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(ColumnDefinitionCollection));
CompiledConverters\ConstraintTypeConverter.cs (1)
20 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Compatibility.Constraint));
CompiledConverters\CornerRadiusTypeConverter.cs (1)
36 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(CornerRadius));
CompiledConverters\EasingTypeConverter.cs (1)
36 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Easing));
CompiledConverters\EnumTypeConverter.cs (1)
22 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(TEnum));
CompiledConverters\FlexBasisTypeConverter.cs (1)
47 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(FlexBasis));
CompiledConverters\FontSizeTypeConverter.cs (1)
61 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(double));
CompiledConverters\GridLengthTypeConverter.cs (1)
52 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(GridLength));
CompiledConverters\ImageSourceTypeConverter.cs (1)
36 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(ImageSource));
CompiledConverters\LayoutOptionsConverter.cs (1)
40 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(LayoutOptions));
CompiledConverters\PointTypeConverter.cs (1)
23 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Point));
CompiledConverters\RDSourceTypeConverter.cs (3)
39 throw new BuildException(BuildExceptionCode.ResourceMissing, node, null, value); 68 throw new BuildException(BuildExceptionCode.ResourceMissing, node, null, value); 103 throw new BuildException(BuildExceptionCode.ConstructorDefaultMissing, node, null, resourceType);
CompiledConverters\RectangleTypeConverter.cs (2)
19 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Rect)); 27 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Rect));
CompiledConverters\RowDefinitionCollectionTypeConverter.cs (1)
43 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(RowDefinitionCollection));
CompiledConverters\StrokeShapeTypeConverter.cs (1)
194 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(IShape));
CompiledConverters\ThicknessTypeConverter.cs (1)
41 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Thickness));
CompiledConverters\TypeTypeConverter.cs (1)
44 throw new BuildException(BuildExceptionCode.Conversion, node, null, value, typeof(Type));
CompiledMarkupExtensions\DataTemplateExtension.cs (2)
23 throw new BuildException(BuildExceptionCode.PropertyMissing, node as IXmlLineInfo, null, "TypeName", typeof(Microsoft.Maui.Controls.Xaml.DataTemplateExtension)); 26 ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.Value);
CompiledMarkupExtensions\StaticExtension.cs (2)
21 throw new BuildException(BuildExceptionCode.XStaticSyntax, node as IXmlLineInfo, null); 32 throw new BuildException(BuildExceptionCode.XStaticResolution, node as IXmlLineInfo, null, membername, typename);
CompiledMarkupExtensions\StaticResourceExtension.cs (1)
24 throw new BuildException(BuildExceptionCode.StaticResourceSyntax, eNode as IXmlLineInfo, null, null);
CompiledMarkupExtensions\TypeExtension.cs (2)
23 throw new BuildException(BuildExceptionCode.PropertyMissing, node as IXmlLineInfo, null, "TypeName", typeof(Microsoft.Maui.Controls.Xaml.TypeExtension)); 33 context.TypeExtensions[node] = typeref ?? throw new BuildException(BuildExceptionCode.TypeResolution, node as IXmlLineInfo, null, valueNode.Value);
CompiledValueProviders\StyleSheetProvider.cs (4)
28 throw new BuildException(BuildExceptionCode.StyleSheetSourceOrContent, node, null); 31 throw new BuildException(BuildExceptionCode.StyleSheetNoSourceOrContent, node, null); 34 throw new BuildException(BuildExceptionCode.StyleSheetStyleNotALiteral, node, null); 37 throw new BuildException(BuildExceptionCode.StyleSheetSourceNotALiteral, node, null);
CreateObjectVisitor.cs (4)
138 ctorInfo = factoryCtorInfo ?? throw new BuildException(BuildExceptionCode.ConstructorXArgsMissing, node, null, typedef.FullName); 150 throw new BuildException(BuildExceptionCode.MethodStaticMissing, node, null, typedef.FullName, factoryMethod, null); 176 throw new BuildException(BuildExceptionCode.PropertyMissing, node, null, missingCtorParameter, typedef.FullName); 192 throw new BuildException(BuildExceptionCode.ConstructorDefaultMissing, node, null, typedef.FullName);
ExpandMarkupsVisitor.cs (5)
90 throw new BuildException(BuildExceptionCode.MarkupNotClosed, xmlLineInfo, null); 93 throw new BuildException(BuildExceptionCode.MarkupParsingFailed, xmlLineInfo, null); 96 throw new BuildException(BuildExceptionCode.MarkupNotClosed, xmlLineInfo, null); 136 throw new BuildException(BuildExceptionCode.XmlnsUndeclared, xmlLineInfo, null, prefix); 157 throw new BuildException(BuildExceptionCode.MarkupParsingFailed, xmlLineInfo, xpe);
NodeILExtensions.cs (4)
144 throw new BuildException(BuildExceptionCode.Conversion, lineInfo, fex, str, typeof(T)); 381 throw new BuildException(BuildExceptionCode.SByteEnums, lineInfo, null); 409 throw new BuildException(BuildExceptionCode.EnumValueMissing, lineInfo, null, value); 430 throw new BuildException(BuildExceptionCode.EnumValueMissing, lineInfo, null, value);
SetNamescopesAndRegisterNamesVisitor.cs (1)
155 throw new BuildException(BuildExceptionCode.NamescopeDuplicate, node as IXmlLineInfo, null, str);
SetPropertiesVisitor.cs (18)
170 throw new BuildException(BuildExceptionCode.ContentPropertyAttributeMissing, node, null, ((IElementNode)parentNode).XmlType.Name); 198 throw new BuildException(BuildExceptionCode.AdderMissing, node, null, parent.VariableType, localname); 499 throw new BuildException(XDataTypeSyntax, dataTypeNode as IXmlLineInfo, null); 505 ?? throw new BuildException(XDataTypeSyntax, dataTypeNode as IXmlLineInfo, null); 510 throw new BuildException(XmlnsUndeclared, dataTypeNode as IXmlLineInfo, null, prefix); 625 throw new BuildException(BuildExceptionCode.BindingIndexerNotClosed, lineInfo, null); 629 throw new BuildException(BuildExceptionCode.BindingIndexerEmpty, lineInfo, null); 633 throw new BuildException(BuildExceptionCode.BindingIndexerEmpty, lineInfo, null); 679 throw new BuildException(BuildExceptionCode.BindingIndexerTypeUnsupported, lineInfo, null, indexType.FullName); 734 throw new BuildException(BindingIndexerParse, lineInfo, null, indexArg, property.Name); 939 throw new BuildException(BindingIndexerParse, node as IXmlLineInfo, null, lastIndexArg, lastProperty.Name); 1131 throw new BuildException(MemberResolution, iXmlLineInfo, null, localName); 1149 throw new BuildException(PropertyResolution, lineInfo, null, localName, parent.VariableType.FullName); 1233 throw new BuildException(MissingEventHandler, iXmlLineInfo, null, value, declaringType); 1653 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1657 throw new BuildException(ResourceDictDuplicateKey, lineInfo, null, key); 1669 throw new BuildException(ResourceDictMissingKey, lineInfo, null); 1707 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null);
XamlCTask.cs (1)
102 LoggedErrors.Add(new BuildException(code, new XmlLineInfo(lineNumber, linePosition), innerException: null, messageArgs));
XmlTypeExtensions.cs (2)
62 throw new BuildException(BuildExceptionCode.InvalidXaml, node as IXmlLineInfo, null, typeName); 97 throw new BuildException(BuildExceptionCode.TypeResolution, xmlInfo, null, $"{xmlType.NamespaceUri}:{xmlType.Name}");
5 references to BuildException
Microsoft.Maui.Controls.Build.Tasks (5)
NodeILExtensions.cs (1)
174 catch (System.Reflection.TargetInvocationException tie) when (tie.InnerException is BuildException)
XamlCTask.cs (4)
33 internal static List<BuildException> LoggedErrors { get; set; } 312 if (e is BuildException be) 325 if (LoggingHelperExtensions.LoggedErrors is List<BuildException> errors) 327 foreach (var error in errors)