Skip to content

Commit

Permalink
Fix nuget localization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom committed Jun 6, 2023
1 parent 55e2c71 commit ef4bfe8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module internal Utilities =

result |> List.ofSeq |> List.map (fun option -> split option)

let executeTool pathToExe arguments workingDir timeout =
let executeTool pathToExe arguments workingDir environment timeout =
match pathToExe with
| Some path ->
let errorsList = ResizeArray()
Expand All @@ -195,6 +195,9 @@ module internal Utilities =
psi.Arguments <- arguments
psi.CreateNoWindow <- true
psi.EnvironmentVariables.Remove("MSBuildSDKsPath") // Host can sometimes add this, and it can break things
for varname, value in environment do
psi.EnvironmentVariables.Add(varname,value) // Host can sometimes add this, and it can break things

psi.UseShellExecute <- false

use p = new Process()
Expand Down Expand Up @@ -240,7 +243,7 @@ module internal Utilities =
let workingDir = Path.GetDirectoryName projectPath
let dotnetHostPath = getDotnetHostPath ()
let args = arguments "msbuild -v:quiet"
let success, stdOut, stdErr = executeTool dotnetHostPath args workingDir timeout
let success, stdOut, stdErr = executeTool dotnetHostPath args workingDir [] timeout

#if DEBUG
let diagnostics =
Expand Down Expand Up @@ -289,7 +292,7 @@ module internal Utilities =
let args = "nuget list source --format detailed"

let success, stdOut, stdErr =
executeTool dotnetHostPath args scriptDirectory timeout
executeTool dotnetHostPath args scriptDirectory ["DOTNET_CLI_UI_LANGUAGE", "en-us"] timeout
#if DEBUG
let diagnostics =
[|
Expand Down

0 comments on commit ef4bfe8

Please sign in to comment.