Skip to content

Commit

Permalink
Merge pull request dotnet#67171 from sharwell/external-init
Browse files Browse the repository at this point in the history
Fix failure to expose IsExternalInit in net6.0 binaries
  • Loading branch information
sharwell authored Mar 14, 2023
2 parents 7f00c15 + 9b9d94f commit 1e5af59
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ internal static class IsExternalInit
}
}

#else

using System.Runtime.CompilerServices;

#pragma warning disable RS0016 // Add public types and members to the declared API (this is a supporting fowarder for an internal polyfill API)
[assembly: TypeForwardedTo(typeof(IsExternalInit))]
#pragma warning restore RS0016 // Add public types and members to the declared API

#endif

0 comments on commit 1e5af59

Please sign in to comment.