When running dotnet publish with self-contained deployment on a plain old web app, it causes the Microsoft.AspNetCore.App.Internal.Assets package to be restored from nuget.org even though that package isn't actually used by the deployed app it's not Blazor). This should be avoided because it's problematic when using a source built .NET SDK (see #46055 (comment)).
Repro steps:
- Install a CentOS Stream 9 source built .NET 10 SDK
- dotnet new webapp
- dotnet publish --self-contained true -r centos.9-x64
This was found when attempting to enable the self-contained tests for the VMR: #46055