Skip to content

Update 2 NuGet dependencies#47

Merged
nfbot merged 4 commits into
developfrom
nfbot/update-dependencies/1f030e14-4179-47e8-92c2-1839b31e9ff0
May 27, 2026
Merged

Update 2 NuGet dependencies#47
nfbot merged 4 commits into
developfrom
nfbot/update-dependencies/1f030e14-4179-47e8-92c2-1839b31e9ff0

Conversation

@nfbot
Copy link
Copy Markdown
Member

@nfbot nfbot commented May 27, 2026

Bumps nanoFramework.CoreLibrary from 2.0.0-preview.49 to 2.0.0-preview.52
Bumps nanoFramework.TestFramework from 4.0.0-preview.52 to 4.0.0-preview.58

[version update]

⚠️ This is an automated update. ⚠️

Bumps nanoFramework.CoreLibrary from 2.0.0-preview.49 to 2.0.0-preview.52</br>Bumps nanoFramework.TestFramework from 4.0.0-preview.52 to 4.0.0-preview.58</br>
[version update]

### ⚠️ This is an automated update. ⚠️
@josesimoes
Copy link
Copy Markdown
Member

@copilot the pipeline build is failing when trying to restore nuget packages. Here's the error:

##[error]The nuget command failed with exit code(1) and error(NU1004: The package reference Microsoft.SourceLink.GitHub version has changed from [10.0.300, ) to [10.0.102, ).
The package reference Microsoft.SourceLink.GitHub version has changed from [10.0.300, ) to [10.0.102, ).The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.
Errors in D:\a\1\s\nanoFramework.Serialization.Helper\nanoFramework.Serialization.Helper.csproj
NU1004: The package reference Microsoft.SourceLink.GitHub version has changed from [10.0.300, ) to [10.0.102, ).
The package reference Microsoft.SourceLink.GitHub version has changed from [10.0.300, ) to [10.0.102, ).The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.)

Update the packages lock file. OK to make the change and commit to this branch. No need for a new PR.

Copy link
Copy Markdown

Copilot AI commented May 27, 2026

@copilot the pipeline build is failing when trying to restore nuget packages. Here's the error:

##[error]The nuget command failed with exit code(1) and error(NU1004: The package reference Microsoft...

Fixed in commit eb4ae14 by updating nanoFramework.Serialization.Helper/packages.lock.json to match the current Microsoft.SourceLink.GitHub dependency graph. Locked-mode restore now succeeds for the helper solution.

Copilot AI requested a review from josesimoes May 27, 2026 09:26
@josesimoes
Copy link
Copy Markdown
Member

@copilot something still wrong. Here the new error:

##[error]The nuget command failed with exit code(1) and error(NU1004: The package references have changed for net48. Lock file's package references: Microsoft.NETFramework.ReferenceAssemblies:[1.0.3, ), Microsoft.SourceLink.GitHub:[10.0.102, ), Nerdbank.GitVersioning:[3.9.50, ), project's package references: Microsoft.SourceLink.GitHub:[10.0.102, ), Nerdbank.GitVersioning:[3.9.50, ).The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.
Errors in D:\a\1\s\nanoFramework.Serialization.Helper\nanoFramework.Serialization.Helper.csproj
NU1004: The package references have changed for net48. Lock file's package references: Microsoft.NETFramework.ReferenceAssemblies:[1.0.3, ), Microsoft.SourceLink.GitHub:[10.0.102, ), Nerdbank.GitVersioning:[3.9.50, ), project's package references: Microsoft.SourceLink.GitHub:[10.0.102, ), Nerdbank.GitVersioning:[3.9.50, ).The packages lock file is inconsistent with the project dependencies so restore can't be run in locked mode. Disable the RestoreLockedMode MSBuild property or pass an explicit --force-evaluate option to run restore to update the lock file.)
##[error]Packages failed to restore

Copy link
Copy Markdown

Copilot AI commented May 27, 2026

@copilot something still wrong. Here the new error:

##[error]The nuget command failed with exit code(1) and error(NU1004: The package references have changed for net48. Lock file'...

Fixed in commit 20912be. The previous restore was run on Linux where the .NET SDK auto-injects Microsoft.NETFramework.ReferenceAssemblies as a direct dependency for net48 targets — but the project file doesn't reference it explicitly, so the Windows NuGet restore rejected the mismatch. Removed those entries from the lock file so only Microsoft.SourceLink.GitHub and Nerdbank.GitVersioning appear as direct references for net48, matching the project file.

@nfbot
Copy link
Copy Markdown
Member Author

nfbot commented May 27, 2026

🛑 Native version bump required — now resolved.

Checksum changed from 0x33AD7648 to 0xFAF07D96. Native version was not bumped (100.2.0.0) — this has since been corrected to 100.2.0.1.

@nfbot
Copy link
Copy Markdown
Member Author

nfbot commented May 27, 2026

⚠️ Native declaration update required!

The checksum and/or native version of nanoFramework.System.Runtime.Serialization have changed. The native declaration in nf-interpreter must be updated before this package can be released.

Previously published This build
Native version 100.2.0.0 100.2.0.1
Checksum 0x33AD7648 0xFAF07D96

👉 Tracking issue: nanoframework/Home#1751

The issue contains a link to the stubs artifact from this build and instructions for GitHub Copilot to perform the update.

@sonarqubecloud
Copy link
Copy Markdown

@nfbot nfbot merged commit 7aa4bd5 into develop May 27, 2026
11 checks passed
@nfbot nfbot deleted the nfbot/update-dependencies/1f030e14-4179-47e8-92c2-1839b31e9ff0 branch May 27, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants