save progress
This commit is contained in:
8
fix-npgsql.ps1
Normal file
8
fix-npgsql.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
Get-ChildItem -Path "src" -Filter "*.csproj" -Recurse | ForEach-Object {
|
||||
$content = Get-Content $_.FullName -Raw -ErrorAction SilentlyContinue
|
||||
if ($content -match 'Npgsql\.EntityFrameworkCore\.PostgreSQL.*10\.0\.1') {
|
||||
$content = $content -replace 'Npgsql\.EntityFrameworkCore\.PostgreSQL" Version="10\.0\.1"', 'Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0"'
|
||||
Set-Content $_.FullName $content -NoNewline
|
||||
Write-Host "Fixed: $($_.FullName)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user