Editorial question65.6K views4,966 votes0 answers2,512 following
AI-generatedproject.assets.json lock file not rolled back after a failed NuGet package upgrade
Starting with NuGet 4.0, each restore operation writes a project.assets.json lock file that records the resolved package graph. When a restore fails part‑way through, the lock file can be left in a partially written or corrupted state. NuGet does not automatically rollback or invalidate this file, so subsequent builds fail until the lock file is removed or o