Skip to content

Commit 20a92fd

Browse files
committed
Fix our IsExternalInit workaround
We were also missing the conditional type forward.
1 parent 9266c22 commit 20a92fd

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#pragma warning disable IDE0073
2+
#if NET5_0_OR_GREATER
3+
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))]
4+
#else
5+
6+
using System.ComponentModel;
7+
8+
namespace System.Runtime.CompilerServices
9+
{
10+
/// <summary>
11+
/// Reserved to be used by the compiler for tracking metadata.
12+
/// This class should not be used by developers in source code.
13+
/// </summary>
14+
[EditorBrowsable(EditorBrowsableState.Never)]
15+
internal static class IsExternalInit
16+
{
17+
}
18+
}
19+
#endif

src/PowerShellEditorServices/Utility/IsExternalInit.cs

-15
This file was deleted.

0 commit comments

Comments
 (0)