Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a test to pin the 'enable default files' behavior of dotnet run #50958

@baronfel

Description

@baronfel

In #50942 we removed EnableDefaultItems=false from the set of properties used to evaluate and run targets for Projects used as part of dotnet run. We did this to unblock Android use cases, where the Targets being run to compute the run command/arguments had a dependency on the default-includes behavior of the SDK. This is the safest choice for us.

However, we need to capture that expectation in a unit test so we don't regress this behavior in the future. We should create a test that dotnet run's a synthetic project with a ComputeRunArguments target that depends on a MSBuild Item that is included as part of the EnableDefaultItems=true setting. The Target could just fail if a given item wasn't found, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-RunIssues relating to `dotnet run`Test DebtuntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions