Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

major bug.. xamarin incorrectly compiles extended controls as though they belong to forms core

$
0
0

Been trying to upgrade a project that is running in forms 1.4 perfectly to xamarin 2 to benefit from the new list caching features etc.
But i've hit a major bug..

This scenario has been working perfectly fine in both xamarin forms 1.3 and 1.4. Upgraded all packages, cleared down caches and moved to xamarin 2 and get error in some of my custom controls that inherit from base xamarin forms class.

It's a shared solution project.

example of one of the errors:
The type or namespace name 'LSearchBar' does not exist in the namespace 'Xamarin.Forms' (are you missing an assembly reference?)

The components are created via this inheritrix chain.

1) EsearchBar [inherits from] LSeachbar [Inherit from] Absolute layout (xamarin)

2) SCell [inherits from] ErrViewCell [Inherits from] ViewCell (xxamarin)

The compile see the custom xaml controls components LSearchBar and ErrViewCell as being part of the xamarin framework and not the custom control class. I've tried adding in the fully qualified class paths in the inheritance chain as well and got the same error.

I've The solution i'm adding was a new solution create that mimiks the real app and it produced the same errors.

I've tried several ways to get round this but to no avail :(

any help would be appreciated.

thanks in advance

Steve


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>