Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Custom schema for enterprise application[Bug] #10912

Open
ehsangfl opened this issue Jun 1, 2020 · 3 comments
Open

Custom schema for enterprise application[Bug] #10912

ehsangfl opened this issue Jun 1, 2020 · 3 comments

Comments

@ehsangfl
Copy link

ehsangfl commented Jun 1, 2020

I have a solution with 10 project and each project has some components of my app
assembly A = model
assembly B = Infrastructure of ViewModels
assembly C = Infrastructure of Views (Costum controls)
Assembly D = User management views and viewmodels
Assembly E = Main application views and viewmodels
and ....

each of assemblies has its custom namespaces.
for example, converters is exists on assembly A,B,C,D and I defined

In assembly A :
[assembly: XmlnsDefinition("http://schemas.apadanasystems.com/xaml/Converters", "AppModel.Web.Converters")]
In assembly C
[assembly: XmlnsDefinition("http://schemas.apadanasystems.com/xaml/Converters", "StandardView.Converters")]

the goal is that map all converter class on all assemblies to "http://schemas.apadanasystems.com/xaml/Converters" schema.

in build time, I see error "Type * not found in http://schemas.apadanasystems.com/xaml/Converters"

some class found by debug process and some others not found

I think thats means each schema can use for one assembly and one namespace!

if disable xaml compilation, working properly without any problem

@ehsangfl ehsangfl added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 1, 2020
@pauldipietro pauldipietro added this to New in Triage Jun 1, 2020
@ehsangfl ehsangfl changed the title [Bug] Custom schema for enterprise application[Bug] Jun 1, 2020
@ehsangfl
Copy link
Author

ehsangfl commented Jun 1, 2020

some times I can run project with build several time each project on solution hierarchy. after several build, this error will removed!!!
for each chaging in project and run it, I must do it again. some times I can run project and some time not!!!
if disable xaml compilation, working properly without any problem

@samhouts
Copy link
Member

samhouts commented Jun 1, 2020

Can you please attach a small project that demonstrates this issue? Thanks!

@samhouts samhouts added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. a/Xaml </> labels Jun 1, 2020
@samhouts samhouts moved this from New to Needs Info in Triage Jun 1, 2020
@ehsangfl
Copy link
Author

ehsangfl commented Jun 2, 2020

OK. I created a sample and uploaded it for your test.
if u want to run this example, please comment all
[XamlCompilation(XamlCompilationOptions.Compile)]
in all pages. app will runing and work like charm.
visual studio intelligence working properly.
you can see error, only in build time, if [XamlCompilation(XamlCompilationOptions.Compile)] exist on pages.
BR

XamarinCustomSchemaTest.zip

@samhouts samhouts removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Jun 2, 2020
@samhouts samhouts moved this from Needs Info to New in Triage Jun 2, 2020
@hartez hartez added e/7 🕖 7 and removed s/unverified New report that has yet to be verified labels Jun 10, 2020
@hartez hartez added this to To do in Other Ready For Work via automation Jun 10, 2020
@hartez hartez removed this from New in Triage Jun 10, 2020
@StephaneDelcroix StephaneDelcroix self-assigned this Jul 27, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

4 participants