Skip to content

Commit d7b06a5

Browse files
committed
Removing runtime identifier argument from extensions install
1 parent 7a5457a commit d7b06a5

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/Azure.Functions.Cli/Actions/LocalActions/SyncExtensionsAction.cs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,14 @@ public async override Task RunAsync()
3636
if (CommandChecker.CommandExists("dotnet"))
3737
{
3838
var extensionsProj = await ExtensionsHelper.EnsureExtensionsProjectExistsAsync(ConfigPath);
39-
var runtimeId = GetRuntimeIdentifierParameter();
4039

41-
var installExtensions = new Executable("dotnet", $"build {extensionsProj} -o {OutputPath} {runtimeId}");
40+
var installExtensions = new Executable("dotnet", $"build {extensionsProj} -o {OutputPath}");
4241
await installExtensions.RunAsync(output => ColoredConsole.WriteLine(output), error => ColoredConsole.WriteLine(ErrorColor(error)));
4342
}
4443
else
4544
{
4645
ColoredConsole.Error.WriteLine(ErrorColor("Extensions command require dotnet on your path. Please make sure to install dotnet for your system from https://www.microsoft.com/net/download"));
4746
}
4847
}
49-
50-
private static string GetRuntimeIdentifierParameter()
51-
{
52-
string os = null;
53-
54-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
55-
{
56-
os = "win";
57-
}
58-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
59-
{
60-
os = "osx";
61-
}
62-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
63-
{
64-
os = "linux";
65-
}
66-
else
67-
{
68-
return string.Empty;
69-
}
70-
71-
string arch = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
72-
73-
return $"-r {os}-{arch}";
74-
}
7548
}
7649
}

0 commit comments

Comments
 (0)