add/edit paths where we look for dotnet sdk. (#2957)
* add/edit paths where we look for dotnet sdk. * using the only one default dotnet sdk path for linux
This commit is contained in:
Родитель
1504b571cd
Коммит
0ca514bf23
|
@ -74,15 +74,16 @@ internal class MsBuildInitializer
|
|||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
sdkBasePath = @"/usr/local/share/dotnet/x64/sdk";
|
||||
//check for the ARM sdk first
|
||||
sdkBasePath = @"/usr/local/share/dotnet/sdk";
|
||||
if (!Directory.Exists(sdkBasePath))
|
||||
{
|
||||
sdkBasePath = @"/usr/local/share/dotnet/x64";
|
||||
}
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
sdkBasePath = @"/usr/share/dotnet/sdk";
|
||||
if (!Directory.Exists(sdkBasePath))
|
||||
{
|
||||
sdkBasePath = @"/usr/local/share/dotnet/sdk";
|
||||
}
|
||||
}
|
||||
|
||||
return sdkBasePath;
|
||||
|
|
Загрузка…
Ссылка в новой задаче