diff --git a/packages/http-client-csharp/eng/scripts/Generate.ps1 b/packages/http-client-csharp/eng/scripts/Generate.ps1 index 2c0f1418ee..be5df2fe1d 100644 --- a/packages/http-client-csharp/eng/scripts/Generate.ps1 +++ b/packages/http-client-csharp/eng/scripts/Generate.ps1 @@ -158,5 +158,6 @@ if ($null -eq $filter) { # Write the launch settings to the launchSettings.json file $launchSettingsPath = Join-Path $solutionDir "Microsoft.Generator.CSharp" "src" "Properties" "launchSettings.json" - $sortedLaunchSettings | ConvertTo-Json | Set-Content $launchSettingsPath + # Write the settings to JSON and normalize line endings to Unix style (LF) + $sortedLaunchSettings | ConvertTo-Json | ForEach-Object { $_ -replace "`r`n", "`n" } | Set-Content $launchSettingsPath }