Skip to content

Commit

Permalink
Normalize line endings in launchsettings file (microsoft#5177)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft authored Nov 22, 2024
1 parent b314307 commit 660724a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/http-client-csharp/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,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
}

0 comments on commit 660724a

Please sign in to comment.