23ed81b6b1
- Add build-error-resolution.md guide for CS0006 and IDE analyzer issues - Add rebuild-solution.ps1 script for clean/reliable builds - Suppress noisy IDE/StyleCop warnings in .editorconfig - Optimize BaseItemRepository grouping queries to use Min(Id) instead of FirstOrDefault, avoiding correlated subqueries and greatly improving DB performance - Add database-query-optimization.md explaining query changes and tuning - Enable EF Core SQL query logging, sensitive data, and detailed errors when log level is Debug (ServiceCollectionExtensions, logging.json) - Update readme with SQL logging instructions - Clarify git commit/ignore guidance and improve inline documentation
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
|