Skip to content

Commit 27af960

Browse files
committed
Disable RestoreLockedMode for CI builds to resolve Microsoft.NET.ILLink.Tasks conflicts
- Set RestoreLockedMode to false for CI builds in Directory.Build.props - This allows CI to restore packages without being constrained by lock files - Resolves NU1004 error where Microsoft.NET.ILLink.Tasks version changed from 8.0.17 to 8.0.10 - Package lock files are still generated locally but CI can restore flexibly - Updated .NET packages to latest 8.0.17 versions and global.json to match CI SDK 8.0.403
1 parent df1e583 commit 27af960

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<!-- https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/ supports caching of nugets in CI builds -->
3838
<PropertyGroup>
3939
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
40-
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreLockedMode>
40+
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">false</RestoreLockedMode>
4141
</PropertyGroup>
4242

4343
<!-- Source Link see https://github.com/dotnet/sourcelink/blob/master/README.md -->

0 commit comments

Comments
 (0)