Skip to content

Allow a custom path to a dotnet executable #2844

@refi64

Description

@refi64

Currently, omnisharp assumes dotnet is in the PATH. However, it would be nice if we could pass a path to a dotnet SDK, e.g. to use a different version or one not globally available. If this seems plausible, I can work on it myself.

I'm guessing this would either involve:

  1. Using the full dotnet path wherever the CLI is called (more elegant but more difficult version).
  2. Modify the PATH from the extension (uglier but likely easier).

I personally prefer 1, but if the maintainers prefer I could do 2 instead.

Steps to reproduce

  • Try to use a dotnet SDK without putting it in your PATH.

Expected behavior

  • Should be able to pass a custom path to the dotnet executable.

Actual behavior

  • Cannot set a custom dotnet path without setting the PATH environment variable first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions