Skip to content

Switch DOTNET_ROOT env when changing directories and tool versions #40

@timabell

Description

@timabell

I've noticed that the DOTNET_ROOT environment variable seems to get out of sync with the currently selected dotnet version specified when you change directories (cd) between folders with different .tool-versions files. This seems to confuse the global dotnet tools.

timabell/sln-items-sync#24

The current readme says to call the init script that sets it in the shell setup, but that's only run on a new shell, and not triggered when changing folders.

I don't know if this is even possible to do anything about, as I don't know if it's possible to fiddle with the env vars when the asdf selections change.

Thanks for the great plugin, I use it all the time. No expectations here of course, just sharing for the record.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions