admin管理员组

文章数量:1349193

In my solution, I have a main maui project and a library project containing some custom UI components. For both projects I have set

<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>

For main project everything works fine. However, for the library project I get warnings

Binding was not compiled because it has an explicitly set Source property and compilation of bindings with Source is not enabled. Consider enabling this optimization by setting the <MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation> in your project file and make sure the correct x:DataType is specified for this binding. See  for more information.

What am I missing? How do I get the library project to also detect that I have MauiEnableXamlCBindingWithSourceCompilation enabled in project configuration?

本文标签: cCannot enable compiled bindings with source for a library projectStack Overflow