Skip to content

dotnet test with source assembly doesn't set DOTNET_ROOT #13611

@ViktorHofer

Description

@ViktorHofer

3.1 introduced support for using dotnet test to invoke a test project or an assembly. This means that dotnet vstest which was used to invoke a test assembly is de facto deprecated as it's replaced by dotnet test. Testing a test assembly with dotnet test on Windows results in the testhost (which uses the apphost feature) not being able to find the runtime because DOTNET_ROOT isn't set.

cc @nohwnd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions