Skip to content

Commit 65ba85a

Browse files
Set NoNewLine in launchsettings generation (#5797)
Ensure final new-line uses unix line feed.
1 parent 34eb706 commit 65ba85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/http-client-csharp/eng/scripts/Generate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,5 @@ if ($null -eq $filter) {
185185
# Write the launch settings to the launchSettings.json file
186186
$launchSettingsPath = Join-Path $solutionDir "Microsoft.Generator.CSharp" "src" "Properties" "launchSettings.json"
187187
# Write the settings to JSON and normalize line endings to Unix style (LF)
188-
$sortedLaunchSettings | ConvertTo-Json | ForEach-Object { $_ -replace "`r`n", "`n" } | Set-Content $launchSettingsPath
188+
$sortedLaunchSettings | ConvertTo-Json | ForEach-Object { ($_ -replace "`r`n", "`n") + "`n" } | Set-Content -NoNewLine $launchSettingsPath
189189
}

0 commit comments

Comments
 (0)