-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[release/9.0.3xx] light up container publish for all Exe/WinExe projects by default #47691
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/9.0.3xx] light up container publish for all Exe/WinExe projects by default #47691
Conversation
|
/azp run dotnet-sdk-public-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run dotnet-sdk-public-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@baronfel , if you still want this in 3xx, it'll need tactics approval. |
|
That's frustrating. This has been setting for weeks in CI instability it seems. |
Are you sure it's just CI instability? I looked at the failure, and it didn't look how I'd expect: warning NETSDK1198: A publish profile with the name 'DefaultContainer' was not found in the project. Set the PublishProfile property to a valid file name. |
|
Yeah, you're right - I took a look at it earlier today and it did seem to be a Real Thing ™️. Which is confusing because |
|
Huzzah, green! Will update with tactics template and send email. |
Backport of #47064 to release/9.0.3xx
Description
This PR is a small change to the Containers targets that defaults containerization to enabled for console applications. This support has been separately enabled for Web and Worker targets, but we never took the step of doing this for console apps
Regarding why we didn't do this earlier the reason was: back when we were initially doing these defaults, the primary way to publish a container was via a Publish Profile - which required the project to import a set of logic and Tasks called the 'Publish SDK'. Web and Worker SDK projects do this already, so they lit up container support easily. However, Console projects couldn't import the Publish SDK easily because of MSBuild ordering/layering constraints.
Customer Impact
Customers can call
/t:PublishContainerfor all executable .NET applications.dotnet new console && dotnet publish /t:PublishContainerJust Works. We've released this in 10p3 and feedback has been positive already!Regression?
Nope, this was just a gap in our coverage.
Risk
Small - this just changes the default of a property that triggers the container support.
Tests
Tests were added to cover the
new + publishworkflow for console apps too.