diff --git a/SystemExtensions.NetStandard.Generators/NotifyPropertyChangedGenerator.cs b/SystemExtensions.NetStandard.Generators/NotifyPropertyChangedGenerator.cs
index 78703ae..2a017b0 100644
--- a/SystemExtensions.NetStandard.Generators/NotifyPropertyChangedGenerator.cs
+++ b/SystemExtensions.NetStandard.Generators/NotifyPropertyChangedGenerator.cs
@@ -150,7 +150,7 @@ public class NotifyPropertyChangedGenerator : IIncrementalGenerator
}
}
- var fileSource = generatedSyntax.ToFullString();
+ var fileSource = $"#nullable enable\n{generatedSyntax.ToFullString()}\n#nullable disable";
sourceProductionContext.AddSource($"{className}.g", fileSource);
}
}
diff --git a/SystemExtensions.NetStandard.Generators/SystemExtensions.NetStandard.Generators.csproj b/SystemExtensions.NetStandard.Generators/SystemExtensions.NetStandard.Generators.csproj
index 65f4ba1..7a454eb 100644
--- a/SystemExtensions.NetStandard.Generators/SystemExtensions.NetStandard.Generators.csproj
+++ b/SystemExtensions.NetStandard.Generators/SystemExtensions.NetStandard.Generators.csproj
@@ -5,7 +5,7 @@
true
Alexandru Macocian
Source generators extensions for netstandard2.0.
- 0.1.5
+ 0.1.6
latest
true
true