For 2.1, the new global tools feature relies on a native host application that bootstraps the .NET tool.
The native host application contains a path that should match the install location of dotnet on the system. For Microsoft installs this is '/usr/share/dotnet'. For RHEL, Fedora, CentOS, this location is different.
We need to look at how we can configure/patch this location in source-build?
When the location doesn't match the install location, tools will fail to start unless the user sets DOTNET_ROOT to point to the install location.
There is a discussion whether the host should probe PATH to find the dotnet installation (https://github.com/dotnet/cli/issues/9114).
I'm looking at how the host for tools gets included.
I think the cli takes this as a package: https://github.com/dotnet/cli/blob/8c937a0db08e56660aca456ac088f2d0e70735ab/src/redist/redist.csproj#L219?
Does source-build first build that package? And then provide it as input to the cli build?
CC @omajid @dleeapho @crummel @dseefeld @natemcmaster @eerhardt
For 2.1, the new global tools feature relies on a native host application that bootstraps the .NET tool.
The native host application contains a path that should match the install location of dotnet on the system. For Microsoft installs this is '/usr/share/dotnet'. For RHEL, Fedora, CentOS, this location is different.
We need to look at how we can configure/patch this location in source-build?
When the location doesn't match the install location, tools will fail to start unless the user sets DOTNET_ROOT to point to the install location.
There is a discussion whether the host should probe PATH to find the dotnet installation (https://github.com/dotnet/cli/issues/9114).
I'm looking at how the host for tools gets included.
I think the cli takes this as a package: https://github.com/dotnet/cli/blob/8c937a0db08e56660aca456ac088f2d0e70735ab/src/redist/redist.csproj#L219?
Does source-build first build that package? And then provide it as input to the cli build?
CC @omajid @dleeapho @crummel @dseefeld @natemcmaster @eerhardt