Skip to content

[WebToolsE2E]Create project failed with error “NETSDK1226: Prune Package data not found ” in CLI after installing SDK 10.0 RC1 #50079

@Susie-1989

Description

@Susie-1989

REGRESSION INFO: Works well 10.0 Preview 7

Platform

  • Windows
  • macOS
  • Linux

INSTALL STEPS

  1. Win11 x64 24h2 ENU
  2. Install the latest SDK 10.0 RC1 from: https://github.com/dotnet/dotnet/blob/main/docs/builds-table.md

REPRO STEPS

1.Open a normal command prompt ,create razor project

md razor
cd razor
dotnet new razor

Note:
1.This issue repro vs code C# devkit 1.41.24.

ACTUAL
Create project failed with error “NETSDK1226: Prune Package data not found ”

Image

The template "ASP.NET Core Web App (Razor Pages)" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/10.0-third-party-notices for details.

Processing post-creation actions...
Restoring C:\test4\test4.csproj:
C:\Program Files\dotnet\sdk\10.0.100-rc.1.25405.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(67,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true.
Restore failed.
Post action failed.
Manual instructions: Run 'dotnet restore'

EXPECTED
Create project successfully.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions