Skip to content

Commit f31f644

Browse files
committed
fix source of indeterminism in xaml compiler.
1 parent 471aa28 commit f31f644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/XamlIlClrPropertyInfoHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ IXamlMethod Get()
5555
return cached.get;
5656
}
5757

58-
var name = lst.Count == 0 ? key : key + "_" + Guid.NewGuid().ToString("N");
58+
var name = lst.Count == 0 ? key : key + "_" + context.Configuration.IdentifierGenerator.GenerateIdentifierPart();
5959

6060
var field = _builder.DefineField(types.IPropertyInfo, name + "!Field", false, true);
6161

0 commit comments

Comments
 (0)