Skip to content

Add option to use a different DOTNET host than the one located in the path #1749

Closed

Description

Follow-up on the offline discussion that we had. We (the .NET team) want to enable VS Text Explorer support for corefx.

We are building the shared framework and the runtime ourselves, we do things differently as the average user. Still we see a strong demand for enabling Test Explorer like in a regular app.

  • Framework
    We (corefx) are the ones that build the framework itself. Therefore we can’t use the shared framework located under %PATH%/dotnet/shared/Microsoft.NETCore.App/x.x.x/ as we want to test our live build.
  • Host
    We don’t take a dependency on the globally installed .NET Core SDK and its dotnet.exe host and use nightly builds instead. That’s because we rely on features that aren’t yet available and because we don’t need that dependency.

We need a way to tell the VS Text Framework (Test Explorer) to use our dotnet host under corefx instead of the global one in the path. Probably via a switch in the .runsettings file that allows to set the custom path.

How are we running the tests? do we use vstest.console or dotnet test verb ?

On the command-line we run tests in a different way by directly invoking xunit.console.dll but with Visual Studio we just want to use the Test Explorer which I'm not sure what it uses behind the scenes. For xunit we are using its test adapter: https://www.nuget.org/packages/xunit.runner.visualstudio/

Can’t we temporarily set the environment variable “PATH” to point to the new path in a script before invoking the test command ?

Can we do that when we just use VS Test Explorer?

cc @singhsarab @danmosemsft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions