Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0.1xx] update warning message for containers package inclusion #40628

Open
wants to merge 2 commits into
base: release/8.0.1xx
Choose a base branch
from

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented May 2, 2024

This is a manual backport of the servicing-approved #39956 since the automated backport didn't apply cleanly.

We want to backport these changes because the 8.0.100 series is LTS and the only version supported by Source-Build, so without it many Linux users would have unintended errors when using the containers feature.

Description

We need to make the warning about removing the Microsoft.NET.Build.Containers NuGet package only fire when running in the context of an SDK that can actually package the kind of app being packaged (since this is still being pushed as a PackageReference as well as bundled into the SDK for certain project types).

Fixes #39931.

Customer Impact

Customers only get a warning if the SDK they are building containers with is actually capable of natively containerizing the kind of project they are building - this means that 8.0.100 SDK users (e.g. Linux distro installs) will only see this error for Web and Worker projects, never console apps. This is valuable because those users will rarely have access to an SDK that can natively target console apps during the 8 cycle, which is LTS.

Regression

Yes, this warning should not have been triggering for different kinds of projects in the different SDK bands - we have been errantly throwing this in different ways since 7.0.400.

Risk

Low, this makes a warning less likely to fire by removing the warning in situations where it is not applicable

Testing

Automated tests cover these scenarios already.

@baronfel baronfel requested a review from a team as a code owner May 2, 2024 14:21
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels May 2, 2024
@baronfel baronfel added Servicing-consider Area-Containers Related to dotnet SDK containers functionality and removed Area-Infrastructure labels May 2, 2024
@baronfel baronfel changed the title update warning message for containers package inclusion [release/8.0.1xx] update warning message for containers package inclusion May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Containers Related to dotnet SDK containers functionality untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant