Skip to content

Migrate in-memory assembly generation in the tests to run on all runtimes #5131

Closed

Description

@stevenaw

Some of the NUnits tests use System.CodeDom to compile an in-memory assembly for the purpose of testing assembly-level attributes. This only works on .NET Framework. Roslyn is suggested for new development and is cross-platform. We should look into moving towards the Roslyn APIs for in-memory dynamic assembly generation in the tests and to try to get those tests running against all our targeted runtimes.

Activity

  1. changed the title [-]Migrate in-memory assembly generation in the tests from using System.CodeDom to using Roslyn[/-] [+]Migrate in-memory assembly generation in the tests from using System.CodeDom to using Roslyn APIs[/+] on Feb 19, 2026
  2. changed the title [-]Migrate in-memory assembly generation in the tests from using System.CodeDom to using Roslyn APIs[/-] [+]Migrate in-memory assembly generation in the tests to run on all runtimes[/+] on Feb 20, 2026
  3. added
    is:testingSome issues are hard to test, this is for adding extra issues just for testing
    on Feb 20, 2026
  4. stevenaw commented on Feb 20, 2026

    @stevenaw
    MemberAuthor

    NOTE: I had tried to just "do this" as part of #5125 but found I struggled with dependency issues at the time and wanted to move on to testing the new attribute itself

  5. manfred-brands commented on Feb 25, 2026

    @manfred-brands
    Member

    Yes, you should not combine unrelated changes in on PR.

    I have asked Copilot to convert System.CodeDom to Roslyn.
    With some tweaking it seems to work.

  6. added this to the 4.6 milestone on Feb 26, 2026
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

    is:testingSome issues are hard to test, this is for adding extra issues just for testing

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions