Skip to content

Commit 2d9dc8c

Browse files
Add pattern to replace for reference API generation (PowerShell#19214)
1 parent 7441276 commit 2d9dc8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/packaging/packaging.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,6 +2757,11 @@ function CleanupGeneratedSourceCode
27572757
Pattern = "[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Runtime.CompilerServices.IsReadOnlyAttribute]"
27582758
Replacement = "/* [System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Runtime.CompilerServices.IsReadOnlyAttribute] */ "
27592759
},
2760+
@{
2761+
ApplyTo = @("System.Management.Automation")
2762+
Pattern = "[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Runtime.CompilerServices.NullableContextAttribute((byte)1)]"
2763+
Replacement = "/* [System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Runtime.CompilerServices.NullableContextAttribute((byte)1)] */ "
2764+
},
27602765
@{
27612766
ApplyTo = @("System.Management.Automation", "Microsoft.PowerShell.ConsoleHost")
27622767
Pattern = "[System.Runtime.CompilerServices.NullableAttribute((byte)2)]"

0 commit comments

Comments
 (0)