Skip to content

Commit 38029a8

Browse files
committed
Adjust remarks for Assembly.Load on .NET Core
1 parent a31d808 commit 38029a8

File tree

1 file changed

+55
-5
lines changed

1 file changed

+55
-5
lines changed

xml/System.Reflection/Assembly.xml

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4128,7 +4128,17 @@ Note: In <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Win
41284128
<param name="assemblyString">The long or short form of the assembly name.</param>
41294129
<summary>Loads an assembly with the specified name.</summary>
41304130
<returns>The loaded assembly.</returns>
4131-
<remarks>
4131+
<remarks FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0">
4132+
<format type="text/markdown"><![CDATA[
4133+
4134+
## Remarks
4135+
4136+
This API is present in .NET Core for compatibility, but it is recommended to use <xref:System.Reflection.AssemblyLoadContext> overloads in .NET Core 2.0 and later.
4137+
4138+
The assembly is loaded into the current AssemblyLoadContext.
4139+
]]></format>
4140+
</remarks>
4141+
<remarks FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-2.0;netstandard-2.1netframework-4.8.1">
41324142
<format type="text/markdown"><![CDATA[
41334143

41344144
## Remarks
@@ -4231,7 +4241,17 @@ To load the correct assembly, it's recommended to call the `Load` method by pass
42314241
<param name="rawSymbolStore">A byte array that contains the raw bytes representing the symbols for the assembly.</param>
42324242
<summary>Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols for the assembly.</summary>
42334243
<returns>The loaded assembly.</returns>
4234-
<remarks>
4244+
<remarks FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0">
4245+
<format type="text/markdown"><![CDATA[
4246+
4247+
## Remarks
4248+
4249+
This API is present in .NET Core for compatibility, but it is recommended to use <xref:System.Reflection.AssemblyLoadContext> overloads in .NET Core 2.0 and later.
4250+
4251+
The assembly is loaded into the current AssemblyLoadContext.
4252+
]]></format>
4253+
</remarks>
4254+
<remarks FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-2.0;netstandard-2.1netframework-4.8.1">
42354255
<format type="text/markdown"><![CDATA[
42364256

42374257
## Remarks
@@ -4620,7 +4640,17 @@ The assembly is loaded using the supplied evidence. The raw bytes representing t
46204640
<param name="path">The fully qualified path of the file to load.</param>
46214641
<summary>Loads the contents of an assembly file on the specified path.</summary>
46224642
<returns>The loaded assembly.</returns>
4623-
<remarks>
4643+
<remarks FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0">
4644+
<format type="text/markdown"><![CDATA[
4645+
4646+
## Remarks
4647+
4648+
This API is present in .NET Core for compatibility, but it is recommended to use <xref:System.Reflection.AssemblyLoadContext> overloads in .NET Core 2.0 and later.
4649+
4650+
The assembly is loaded into a new AssemblyLoadContext created for this purpose.
4651+
]]></format>
4652+
</remarks>
4653+
<remarks FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-2.0;netstandard-2.1netframework-4.8.1">
46244654
<format type="text/markdown"><![CDATA[
46254655

46264656
## Remarks
@@ -4790,7 +4820,17 @@ Starting with .NET Framework 4, the ability to execute code in assemblies loaded
47904820
<param name="assemblyFile">The name or path of the file that contains the manifest of the assembly.</param>
47914821
<summary>Loads an assembly given its file name or path.</summary>
47924822
<returns>The loaded assembly.</returns>
4793-
<remarks>
4823+
<remarks FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0">
4824+
<format type="text/markdown"><![CDATA[
4825+
4826+
## Remarks
4827+
4828+
This API is present in .NET Core for compatibility, but it is recommended to use <xref:System.Reflection.AssemblyLoadContext> overloads in .NET Core 2.0 and later.
4829+
4830+
The assembly is loaded into the default AssemblyLoadContext.
4831+
]]></format>
4832+
</remarks>
4833+
<remarks FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-2.0;netstandard-2.1netframework-4.8.1">
47944834
<format type="text/markdown"><![CDATA[
47954835

47964836
## Remarks
@@ -5041,7 +5081,17 @@ The ability to execute code in remote assemblies is disabled. See <see href="htt
50415081
<param name="hashAlgorithm">The hash algorithm used for hashing files and for generating the strong name.</param>
50425082
<summary>Loads an assembly given its file name or path, hash value, and hash algorithm.</summary>
50435083
<returns>The loaded assembly.</returns>
5044-
<remarks>
5084+
<remarks FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0">
5085+
<format type="text/markdown"><![CDATA[
5086+
5087+
## Remarks
5088+
5089+
This API is present in .NET Core for compatibility, but it is recommended to use <xref:System.Reflection.AssemblyLoadContext> overloads in .NET Core 2.0 and later.
5090+
5091+
The assembly is loaded into the default AssemblyLoadContext.
5092+
]]></format>
5093+
</remarks>
5094+
<remarks FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-2.0;netstandard-2.1netframework-4.8.1">
50455095
<format type="text/markdown"><![CDATA[
50465096

50475097
## Remarks

0 commit comments

Comments
 (0)