diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators/NativeCtor/NativeCtorsGenerator.cs b/src/SourceGenerators/Uno.UI.SourceGenerators/NativeCtor/NativeCtorsGenerator.cs index 41f13ef52298..76056b0a9f9c 100644 --- a/src/SourceGenerators/Uno.UI.SourceGenerators/NativeCtor/NativeCtorsGenerator.cs +++ b/src/SourceGenerators/Uno.UI.SourceGenerators/NativeCtor/NativeCtorsGenerator.cs @@ -15,6 +15,9 @@ namespace Uno.UI.SourceGenerators.NativeCtor { [Generator] +#if NETFRAMEWORK + [GenerateAfter("Uno.UI.SourceGenerators.XamlGenerator." + nameof(XamlGenerator.XamlCodeGenerator))] +#endif public class NativeCtorsGenerator : ISourceGenerator { public void Initialize(GeneratorInitializationContext context)