This commit is contained in:
Marius
2026-03-08 19:10:16 +02:00
commit 861c344832
74 changed files with 34756 additions and 0 deletions
@@ -0,0 +1,19 @@
# Update the codegen
dotnet tool update -g NetDaemon.HassModel.CodeGen
# Update all nugets to latest versions
$regex = 'PackageReference Include="([^"]*)" Version="([^"]*)"'
ForEach ($file in Get-ChildItem . -Recurse | Where-Object { $_.Extension -like "*proj" }) {
$packages = Get-Content $file.FullName |
Select-String -Pattern $regex -AllMatches |
ForEach-Object { $_.Matches } |
ForEach-Object { $_.Groups[1].Value.ToString() } |
Sort-Object -Unique
ForEach ($package in $packages) {
Write-Host "Update $file package :$package" -ForegroundColor Magenta
$fullName = $file.FullName
& dotnet add $fullName package $package
}
}