Repository navigation
MSBuildSdkResolver: resolve symlink for 'dotnet' binary - #7126
Conversation
|
@akoeplinger, |
|
@nguerrera PTAL |
| { | ||
| internal static readonly bool RunningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); | ||
|
|
||
| internal static string realpath (string path) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| internal static string realpath (string path) | ||
| { | ||
| var buffer = new StringBuilder(4096); // PATH_MAX from linux/limits.h |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
1ff48fd to
5379832
Compare
|
@dotnet-bot Test RHEL7.2 x64 Release Build |
On Linux the dotnet installed by the dotnet packages is a symlink (/usr/bin/dotnet -> ../share/dotnet/dotnet). We need to resolve the symlink so we're passing the path to the actual .NET Core installation to libhostfxr. Fixes https://github.com/dotnet/cli/issues/7125
The .NET Standard build ships with Mono/msbuild.
5379832 to
600946c
Compare
On Linux the dotnet installed by the dotnet-sdk packages is a symlink (/usr/bin/dotnet -> ../share/dotnet/dotnet).
We need to resolve the symlink so we're passing the path to the actual .NET Core installation to libhostfxr.
Fixes https://github.com/dotnet/cli/issues/7125