REGRESSION INFO: Works well 10.0 Preview 7
Platform
INSTALL STEPS
- Win11 x64 24h2 ENU
- 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 ”
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.