From 6aba7502cf655a213efcc4164aaa933c90ac1224 Mon Sep 17 00:00:00 2001 From: Ilia Brahinets Date: Wed, 13 Nov 2024 20:41:18 +0300 Subject: [PATCH] Use native IsExternalInit on .net8 target. --- lib/PuppeteerSharp/IsExternalInit.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/PuppeteerSharp/IsExternalInit.cs b/lib/PuppeteerSharp/IsExternalInit.cs index 2632f761b..3ca09cefa 100644 --- a/lib/PuppeteerSharp/IsExternalInit.cs +++ b/lib/PuppeteerSharp/IsExternalInit.cs @@ -1,6 +1,13 @@ +#if !NETSTANDARD2_0 +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +#else +using System.ComponentModel; + namespace System.Runtime.CompilerServices { + [EditorBrowsable(EditorBrowsableState.Never)] internal static class IsExternalInit { } } +#endif