8000 Define the experimental feature name · awakecoding/PowerShell@97a30b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97a30b1

Browse files
daxian-dbwSteveL-MSFT
authored andcommitted
Define the experimental feature name
1 parent 404d8c5 commit 97a30b1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/System.Management.Automation/CoreCLR/CorePsAssemblyLoadContext.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,10 @@ public static unsafe class PowerShellUnsafeAssemblyLoad
596596
/// <summary>
597597
/// Load an assembly in memory from unmanaged code.
598598
/// </summary>
599+
/// <remarks>
600+
/// This API is covered by the experimental feature 'PSLoadAssemblyFromNativeCode',
601+
/// and it may be deprecated and removed in future.
602+
/// </remarks>
599603
/// <param name="data">Unmanaged pointer to assembly data buffer.</param>
600604
/// <param name="size">Size in bytes of the assembly data buffer.</param>
601605
/// <returns>Returns zero on success and non-zero on failure.</returns>

src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ static ExperimentalFeature()
140140
new ExperimentalFeature(
141141
name: PSNativeCommandArgumentPassingFeatureName,
142142
description: "Use ArgumentList when invoking a native command"),
143+
new ExperimentalFeature(
144+
name: "PSLoadAssemblyFromNativeCode",
145+
description: "Expose an API to allow assembly loading from native code"),
143146
};
147+
144148
EngineExperimentalFeatures = new ReadOnlyCollection<ExperimentalFeature>(engineFeatures);
145149

146150
// Initialize the readonly dictionary 'EngineExperimentalFeatureMap'.

0 commit comments

Comments
 (0)
0