Xamarin.forms: No longer able to compile after upgrading to XF 4.0.0 Service Release 1

Created on 31 May 2019  路  12Comments  路  Source: xamarin/Xamarin.Forms

After upgrading to XF 4.0.0 SR1 I can no longer compile my solution.

Error | 聽 | Position 5:14. Missing a public static GetAutowireViewModel or a public instance property getter for the attached property "Prism.Mvvm.ViewModelLocator.AutowireViewModelProperty" | TestCase | C:\Users\Administrator\Documents\Code\TestCase\TestCase\TestCase\Views\TestPage.xaml 聽


Steps to Reproduce

  1. Using VS2019 create a new XF app.
  2. Update XF to latest service release.
  3. Add Prism.DryIoc.Forms to projects.
  4. Add a new Prism ContentPage using the template pack.
  5. Compile the solution.

Expected Behavior

Clean compile

Actual Behavior

Compile failure

Error | 聽 | Position 5:14. Missing a public static GetAutowireViewModel or a public instance property getter for the attached property "Prism.Mvvm.ViewModelLocator.AutowireViewModelProperty" | TestCase | C:\Users\Administrator\Documents\Code\TestCase\TestCase\TestCase\Views\TestPage.xaml

Basic Information

  • Version with issue: XF 4.0.0.471375 Prism.DryIoc.Forms 7.1.0.431
  • Last known good version: XF 4.0.0.425677 Prism.DryIoc.Forms 7.1.0.431
  • IDE: VS2019
buildchain 2 high regression bug

Most helpful comment

Thanks for the reports! We're pretty sure we know what's going on, and yes, these all have the same root cause. We'll be releasing a fix as soon as we can.

All 12 comments

I have exactly the same issue without using Prism, with the following errors

No property, bindable property, or event found for 'BackgroundColor', or mismatching type between value and property.

No property, bindable property, or event found for 'ItemTemplate', or mismatching type between value and property

No property, bindable property, or event found for 'Content', or mismatching type between value and property

IDE: VS2019
XF: 4.0.0.471375

@ValonK I think you need to clean and rebuild your solution. If that does not work, can you please attach a project reproducing the problem? Are you using Shell? Thanks

@samhouts I have cleaned, deleted obj+bin, cleared nuget cache... nothing seems to work. No I'm not using Shell, yeah sure I will upload a sample later

Test case attached. Cleaning solution does not resolve this issue.

TestCase.zip

This also applies to the package PancakeView - missing CornerRadiusProperty, Not sure If I need to open a new issue for this.

Thanks for the reports! We're pretty sure we know what's going on, and yes, these all have the same root cause. We'll be releasing a fix as soon as we can.

same problem, clean up, deleted bin and obj folder then rebuild but still can't compile project

Thanks for the report! We've decided to pull SR1 from NuGet, so we recommend rolling back to the previous stable version of 4.0.0 for the time being. SR2 is being prepared as we speak! Sorry for the inconvenience, and thank you for your patience!!

great to hear that @samhouts

SR2 is now live on NuGet. Thanks again for the quick reports! Let us know if you find any other issues.

awesome!

Where can we find the release notes? Can't find it in docs, or the release tabs here in Github

Was this page helpful?
0 / 5 - 0 ratings