-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Steps to Reproduce
- Clone the aspnetcore repo
- Run
dotnet restore
on Mac M1 with installed SDK 10.0.100-rc.1.25451.107 - Observe errors:
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/...
error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App.
Expected Behavior
Restore should succeed even if installed SDK minor version differs from global.json.
Additional Context
- The exact SDK
10.0.100-rc.1.25420.111
referenced inglobal.json
is not available online. - Suggestion: update global.json to the latest RC version:
10.0.100-rc.1.25451.107
.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
/usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(68,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
.NET Version
10.0.100-rc.1.25451.107
Anything else?
ASP.NET Core 10.0 RC 1
JetBrains Rider 2025.1.4
macOS Sequoia Vesrion 15.6
dcsharma@Dineshs-MacBook-Air aspnetcore % dotnet --info
.NET SDK:
Version: 10.0.100-rc.1.25451.107
Commit: 2db1f5ee2b
Workload version: 10.0.100-manifests.1a2d104c
MSBuild version: 17.15.0-preview-25451-107+2db1f5ee2
Runtime Environment:
OS Name: Mac OS X
OS Version: 15.6
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/10.0.100-rc.1.25451.107/
.NET workloads installed:
[wasm-tools]
Installation Source: SDK 10.0.100-rc.1
Manifest Version: 10.0.100-rc.1.25451.107/10.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/10.0.100/microsoft.net.workload.mono.toolchain.current/10.0.100-rc.1.25451.107/WorkloadManifest.json
Install Type: FileBased
[wasm-experimental]
Installation Source: SDK 10.0.100-rc.1
Manifest Version: 10.0.100-rc.1.25451.107/10.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/10.0.100/microsoft.net.workload.mono.toolchain.current/10.0.100-rc.1.25451.107/WorkloadManifest.json
Install Type: FileBased
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.0-rc.1.25451.107
Architecture: arm64
Commit: 2db1f5ee2b
.NET SDKs installed:
6.0.428 [/usr/local/share/dotnet/sdk]
8.0.410 [/usr/local/share/dotnet/sdk]
9.0.305 [/usr/local/share/dotnet/sdk]
10.0.100-rc.1.25451.107 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-rc.1.25451.107 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-rc.1.25451.107 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
/Users/dcsharma/aspnetcore/global.json
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
dotnet restore fails because my installed SDK version (10.0.100-rc.1.25451.107) does not match the version in global.json (10.0.100-rc.1.25420.111)