Skip to content

fix: pin .NET Framework reference assemblies for consistent lock file#185

Merged
esskar merged 1 commit into
mainfrom
feature/nuget-lock-files
Jun 16, 2026
Merged

fix: pin .NET Framework reference assemblies for consistent lock file#185
esskar merged 1 commit into
mainfrom
feature/nuget-lock-files

Conversation

@esskar

@esskar esskar commented Jun 16, 2026

Copy link
Copy Markdown
Owner

The net48/net481 reference assemblies package is pulled in implicitly on non-Windows hosts but comes from the OS on Windows, so a lock file generated on macOS/Linux failed locked-mode restore on the Windows CI runner (NU1004). Declare Microsoft.NETFramework.ReferenceAssemblies explicitly (PrivateAssets=all, build-only) so packages.lock.json is identical regardless of build OS.

The net48/net481 reference assemblies package is pulled in implicitly on
non-Windows hosts but comes from the OS on Windows, so a lock file generated
on macOS/Linux failed locked-mode restore on the Windows CI runner (NU1004).
Declare Microsoft.NETFramework.ReferenceAssemblies explicitly (PrivateAssets=all,
build-only) so packages.lock.json is identical regardless of build OS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@esskar esskar merged commit e7197c4 into main Jun 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant