Skip to content

" The default location on Linux and macOS is /usr/local/share/dotnet" #34703

@SomeoneElseOSM

Description

@SomeoneElseOSM

I suspect that this may vary by OS. On Ubuntu 22.04 (installed in WSL), using dotnet from the MS 22.04 rather than the ubuntu repository, the default seems to be "/usr/share/dotnet".

I think that the default Ubuntu packages may set "DOTNET_ROOT=/usr/lib/dotnet", which is different again; I noticed that e.v. was set and was causing a problem when moving from Ubuntu 22.04 versions of .NET packages to MS' 22.04 versions.

See also discussion at dotnet/core#7699 and dotnet/runtime#79237 . The e.v. was set via dotnet.sh in /etc/profile.d; my guess is that it was when I installed something that used .NET a couple of months ago. See especially dotnet/runtime#79237 (comment) , but for the purposes of the documentation here it'd be great to give enough information to locate it, maybe even as simple as "locate host/fxr".


Document details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 81749

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions