最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Cannot enable compiled bindings with source for a library project - Stack Overflow

programmeradmin3浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论