docs-maui icon indicating copy to clipboard operation
docs-maui copied to clipboard

.NET MAUI 9: Compiled binding warnings disabled

Open davidbritch opened this issue 1 year ago • 1 comments

In .NET MAUI 9, x:DataType warnings will be disabled. However, the behaviour can be opted back into by setting the $(MauiStrictXamlCompilation) build property to true. This strict compilation will remain enabled by default for NativeAOT.

https://github.com/dotnet/maui/pull/21418


Associated WorkItem - 314389

davidbritch avatar Apr 03 '24 12:04 davidbritch

The warnings were disabled in a .NET 8 servicing release but they should be enabled by default in .NET 9. The reason why we disabled them was that they were introduced in a .NET 8 servicing release and started breaking customers' app builds.

simonrozsival avatar Jul 09 '24 13:07 simonrozsival