Skip to content

dotnet test - allow to specify msbuild properties #23198

Open
@tapika

Description

@tapika

At the moment if you run dotnet test myexample.csproj - by default it would try to build and run that test.
I however would like to pass extra msbuild parameters to project file, so I could mimic project presence in solution.

Normally you would like to set SolutionName and SolutionDir properties, but it's possible that even custom properties needs to be defined.

Command line syntax could be extended to be something like this:

dotnet test -pSolutioName=mySolution myexample.csproj

(Pure example, dev team can decide best approach)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions