Skip to content

Do not run .NET Framework tests on non-windows platforms by default #6749

@Romfos

Description

@Romfos

Summary

Now it you will try to run .NET Framework tests on unix platforms on GitHub action you will see an error that mono is not installed

I think that this is not what most of the people want (at least by default)

Make sense to disable is by default

Background and Motivation

Now you need to write code in github actions like that:

      - name: .NET Framework Tests
        if: matrix.os == 'windows-latest'
        run: dotnet test -f net472 

      - name: .NET 8 Tests
        run: dotnet test -f net8.0

      - name: .NET 9 Tests
        run: dotnet test -f net9.0

      - name: .NET 10 Tests
        run: dotnet test -f net10.0 

would be better just to run it like that:

      - name: Tests
        run: dotnet test

Proposed Feature

Do not run .NET Framework tests on non-windows platforms by default in new MTP mode for .NET 10+

Add --run-mono-tests as fallback option for people who needed it

Alternative Designs

status quo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions