e7aa3024cb
Refactored BaseItemRepository to use a new helper method, MaterializeOrderedDtos, ensuring DTOs are returned in the order of precomputed IDs and improving code reuse. Updated comments to clarify ordering. Cleaned up scenario.json properties and reformatted rebuild-solution.ps1 without changing its logic.
29 lines
1.4 KiB
PowerShell
29 lines
1.4 KiB
PowerShell
# PowerShell script to rebuild the Jellyfin solution properly
|
|
# This script cleans and rebuilds in the correct order to resolve CS0006 metadata errors
|
|
|
|
Write-Host "Starting Jellyfin solution rebuild..." -ForegroundColor Cyan
|
|
|
|
# Step 1: Clean the solution
|
|
Write-Host "`n[1/3] Cleaning solution..." -ForegroundColor Yellow
|
|
dotnet clean Jellyfin.sln --configuration Debug
|
|
|
|
# Remove obj and bin directories to ensure clean state
|
|
Write-Host "`n[2/3] Removing build artifacts..." -ForegroundColor Yellow
|
|
Get-ChildItem -Path . -Include bin,obj -Recurse -Directory | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
|
|
|
|
# Step 3: Restore NuGet packages
|
|
Write-Host "`n[3/3] Restoring NuGet packages..." -ForegroundColor Yellow
|
|
dotnet restore Jellyfin.sln
|
|
|
|
# Step 4: Build the solution
|
|
Write-Host "`n[4/4] Building solution..." -ForegroundColor Yellow
|
|
dotnet build Jellyfin.sln --configuration Debug --no-restore
|
|
|
|
Write-Host "`nBuild complete!" -ForegroundColor Green
|
|
Write-Host "If you still see errors, try building specific projects in this order:" -ForegroundColor Cyan
|
|
Write-Host " 1. Jellyfin.Database.Implementations" -ForegroundColor Gray
|
|
Write-Host " 2. Jellyfin.Database.Providers.Postgres" -ForegroundColor Gray
|
|
Write-Host " 3. Jellyfin.Server.Implementations" -ForegroundColor Gray
|
|
Write-Host " 4. Emby.Server.Implementations" -ForegroundColor Gray
|
|
Write-Host " 5. Jellyfin.Server" -ForegroundColor Gray
|