Skip to content

Prevent Microsoft.AspNetCore.App.Internal.Assets from being restored when not needed #46165

Description

@mthalman

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:

  1. Install a CentOS Stream 9 source built .NET 10 SDK
  2. dotnet new webapp
  3. dotnet publish --self-contained true -r centos.9-x64

This was found when attempting to enable the self-contained tests for the VMR: #46055

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions