Skip to content

Commit 9533859

Browse files
simonrozsivalrmarinho
authored andcommitted
Improve binding data type explicitly null message
1 parent 017ff02 commit 9533859

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Controls/src/Build.Tasks/BuildException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class BuildExceptionCode
5656
public static BuildExceptionCode BPName = new BuildExceptionCode("XFC", 0020, nameof(BPName), "");
5757
public static BuildExceptionCode BPMissingGetter = new BuildExceptionCode("XFC", 0021, nameof(BPMissingGetter), "");
5858
public static BuildExceptionCode BindingWithoutDataType = new BuildExceptionCode("XC", 0022, nameof(BindingWithoutDataType), "https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings"); //warning
59-
public static BuildExceptionCode BindingWithNullDataType = new BuildExceptionCode("XC", 0023, nameof(BindingWithNullDataType), ""); //warning
59+
public static BuildExceptionCode BindingWithNullDataType = new BuildExceptionCode("XC", 0023, nameof(BindingWithNullDataType), "https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings"); //warning
6060

6161
//Bindings, conversions
6262
public static BuildExceptionCode Conversion = new BuildExceptionCode("XFC", 0040, nameof(Conversion), "");

src/Controls/src/Build.Tasks/ErrorMessages.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!--
44
Microsoft ResX Schema
@@ -139,7 +139,7 @@
139139
<value>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.</value>
140140
</data>
141141
<data name="BindingWithNullDataType" xml:space="preserve">
142-
<value>Binding could be compiled if x:DataType is not explicitly null.</value>
142+
<value>Binding could be compiled to improve runtime performance if x:DataType is not explicitly null. See https://learn.microsoft.com/dotnet/maui/fundamentals/data-binding/compiled-bindings for more information.</value>
143143
</data>
144144
<data name="BindingPropertyNotFound" xml:space="preserve">
145145
<value>Binding: Property "{0}" not found on "{1}".</value>

0 commit comments

Comments
 (0)