Skip to content

Fix XC0022 warnings for src/Controls/tests/TestCases.HostApp #31734

@jfversluis

Description

@jfversluis

When building the src/Controls/tests/TestCases.HostApp project there are thousands of warnings with the below content. Lets fix those. Have a look at the suggested link https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings on how to do it properly.

##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue3798.xaml(8,6): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue3798.xaml(8,6): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(5,96): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(5,96): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(6,102): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(6,102): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(9,19): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(9,19): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(17,19): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(17,19): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(18,19): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.
/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(18,19): XamlC warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information. [/Users/builder/azdo/_work/2/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net9.0-tizen]
##[warning]src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4356.xaml(31,40): Warning XC0022: Binding could be compiled to improve runtime performance if x:DataType is specified. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions