Unable to build samples project
Depechie opened this issue · 6 comments
Visual Studio upd 2
I just cloned the uwp behaviors project from github.
Did a build of the Managed version and then tried to build the samples and all I got was this:
C:\Projects\GitHub\XamlBehaviors\samples\CS\XAMLBehaviorsSample\CallMethodControl.DeviceFamily-Mobile.xaml(60,85): XamlCompiler error WMC0610: XBF generation error code 0x07da.
Any idea why? it's on line <Interactions:CallMethodAction TargetObject="{Binding}" MethodName="IncrementCount"/>
If I remove this I get another error later on:
C:\Projects\GitHub\XamlBehaviors\samples\CS\XAMLBehaviorsSample\ChangePropertyControl.DeviceFamily-Mobile.xaml(64,146): XamlCompiler error WMC0615: Type 'StaticResource' used after '{' must be a Markup Extension. Error code 0x07da.
On this line <Interactions:ChangePropertyAction TargetObject="{Binding ElementName=DataTriggerRectangle}" PropertyName="Fill" Value="{StaticResource PaleYellowBrush}"/>
Anyway... so I'm unable to build said project
Yep, I can repro this.
I looked into the issue and looks like this is regressed by pull request #99 Adds an interface for triggers. Resolves #20. With syncing up to this change, creating a new UWP with behavior will have the XBF generation error when build, not specific to the sample.
@nigel-sampson any insights about why this is failing after your change?
Hard to imagine a change in there introducing this sort of error. That PR adds a new interface and a base class inline with the other base classes.
Will take a closer look tonight.
Hey @nigel-sampson , is there any update on this?
Just deleted my comment, had a build caching issue giving false results.
Just created #110 to resolve the issue, also suggest we add the samples project to the CI build.