This repository has been archived by the owner on May 1, 2024. It is now read-only.
[XamlC] Error should be thrown when x:DataType="{x:Type XXX}" is specified in XAMLC #5330
Comments
x:DataType expects a type literal, not a type object. We can see if it's possible to support this behavior in the future. |
StephaneDelcroix
added a commit
that referenced
this issue
Feb 21, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes #5330
3 tasks
StephaneDelcroix
added a commit
that referenced
this issue
Feb 21, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes #5330
StephaneDelcroix
added a commit
that referenced
this issue
Feb 21, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes #5330
Issue still exist in Xamarin .Forms 3.6, if built in release mode. |
@tmt242001 the PR isn't even merged yet |
StephaneDelcroix
added a commit
that referenced
this issue
Mar 6, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes #5330
adrianknight89
pushed a commit
to adrianknight89/Xamarin.Forms
that referenced
this issue
Mar 29, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes xamarin#5330
codemillmatt
pushed a commit
to codemillmatt/Xamarin.Forms
that referenced
this issue
Apr 19, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes xamarin#5330
AxelUser
pushed a commit
to AxelUser/Xamarin.Forms
that referenced
this issue
Jun 15, 2019
Invalid x:DataType was ignored up to now. Change the behavior so it throws a XPE. - fixes xamarin#5330
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When DataType is specified like: x:DataType="{x:Type vm:SomeViewModel}" compilation succeeds and project runs but element doesn't benefit from xamlc compilation
Steps to Reproduce
Add x:DataType="{x:Type vm:SomeViewModel}" to any element
Expected Behavior
Project build should fail with some error complaining about x:DataType format
Actual Behavior
Procect build succeeds
Basic Information
Screenshots
The text was updated successfully, but these errors were encountered: