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

Use ASPNETCORE_HTTP_PORTS and set APP_UID. #472

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

tmds
Copy link
Member

@tmds tmds commented Oct 4, 2023

This aligns with changes made to Microsoft images for .NET 8.

Fixes #448.

This aligns with changes made to Microsoft images for .NET 8.
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
var builder = WebApplication.CreateBuilder(args);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ASPNETCORE_HTTP_PORTS was introduced in a backwards compatible way.

It seems the backwards compatibility does not include the old WebHost API which this example was still using.
I've created an issue: dotnet/aspnetcore#51125.
We should follow what comes out.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like introducing a non-breaking change when it is not needed,
though I prefer to follow what Microsoft does here, and document the breaking change.

If Microsoft makes some further changes to avoid the breaking change, we can sync again for those.

@tmds tmds requested review from omajid and aslicerh October 4, 2023 08:35
@tmds
Copy link
Member Author

tmds commented Oct 9, 2023

@aslicerh @omajid can you take a look and approve the PR?

@tmds tmds merged commit 0884407 into redhat-developer:main Oct 9, 2023
@tmds
Copy link
Member Author

tmds commented Oct 9, 2023

@aslicerh, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[.NET 8] align with some Microsoft changes
2 participants