Skip to content

Use ASPNETCORE_HTTP_PORTS and set APP_UID.#472

Merged
tmds merged 1 commit intoredhat-developer:mainfrom
tmds:port_and_uid
Oct 9, 2023
Merged

Use ASPNETCORE_HTTP_PORTS and set APP_UID.#472
tmds merged 1 commit intoredhat-developer:mainfrom
tmds:port_and_uid

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 aslicerh and omajid 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