Skip to content

Commit

Permalink
Set NoNewLine in launchsettings generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLove-msft committed Jan 28, 2025
1 parent 22dc8c3 commit d2b9050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/http-client-csharp/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ if ($null -eq $filter) {
# Write the launch settings to the launchSettings.json file
$launchSettingsPath = Join-Path $solutionDir "Microsoft.Generator.CSharp" "src" "Properties" "launchSettings.json"
# 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
$sortedLaunchSettings | ConvertTo-Json | ForEach-Object { $_ -replace "`r`n", "`n" } | Set-Content -NoNewLine $launchSettingsPath
}
Original file line number Diff line number Diff line change
Expand Up @@ -331,4 +331,4 @@
"executablePath": "$(SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe"
}
}
}
}

0 comments on commit d2b9050

Please sign in to comment.