We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea333a5 commit ca93669Copy full SHA for ca93669
test-example.ps1
@@ -231,7 +231,7 @@ function Process-AspNetCoreProject {
231
if ($updated) {
232
#$packageJson | ConvertTo-Json -Depth 10 | Set-Content -Path $packageJsonPath -Encoding UTF8
233
$jsonContent = $packageJson | ConvertTo-Json -Depth 10
234
- [System.IO.File]::WriteAllText($packageJsonPath, $jsonContent, [System.Text.Encoding]::UTF8)
+ [System.IO.File]::WriteAllText($packageJsonPath, $jsonContent, [System.Text.UTF8Encoding]::new($false))
235
Write-Host "Updated package.json with valid versions."
236
} else {
237
Write-Host "No matching dependencies found in package.json to update."
0 commit comments