Skip to content

AssemblyBuilder documentation for .NET Core/.NET 5 is stale #5321

Open

Description

@vitek-karas

Some of the information on the AssemblyBuilder class page: https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Reflection.Emit/AssemblyBuilder.xml is describing the behavior of this API on .NET Framework not on .NET Core/.NET 5.

For example:

  • All mentions of "saving the assembly" should be removed, the save functionality is not available in .NET Core

  • To get an AssemblyBuilder object, use the AppDomain.DefineDynamicAssembly method.

    The AppDomain.DefineDynamicAssembly doesn't exist in .NET Core. The way to create the builder object is different now

  • Basically any mention of AppDomain are stale as well

  • AssemblyBuilderAccess enum has different values in .NET Core - the document doesn't reflect that change

Activity

  1. added
    untriaged
    on Feb 10, 2021
  2. added
    Pri3
    on Feb 10, 2021
  3. MSDN-WhiteKnight commented on Jan 26, 2022

    @MSDN-WhiteKnight
    Contributor

    I think this is now addressed after updates in #5491 and #7619

    Also duplicate issues could be closed: #2645, #4207

  4. buyaa-n commented on Jan 29, 2022

    @buyaa-n
    Contributor

    I think this is now addressed after updates in #5491 and #7619

    Thanks @MSDN-WhiteKnight looks most of it addressed with #5491 but it is not covered The AppDomain.DefineDynamicAssembly doesn't exist in .NET Core. The way to create the builder object is different now part, i still see it in the doc

    To get an <xref:System.Reflection.Emit.AssemblyBuilder> object, use the <xref:System.Reflection.Emit.AssemblyBuilder.DefineDynamicAssembly%2A?displayProperty=nameWithType> method.

    Also duplicate issues could be closed: #2645, #4207

    Thanks, closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3area-System.Reflection.Emituntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions