Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add feature switch to control HTTP3 support #49564

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

MichalStrehovsky
Copy link
Member

Complements dotnet/runtime#117012.

@Copilot Copilot AI review requested due to automatic review settings June 26, 2025 05:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a feature switch to control HTTP/3 support via SDK properties and tests.

  • Introduces Http3Support property in the KitchenSink test project
  • Updates publish tests to include the new System.Net.SocketsHttpHandler.Http3Support setting
  • Maps Http3Support to a RuntimeHostConfigurationOption in Microsoft.NET.Sdk.targets

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/TestAssets/TestProjects/KitchenSink/TestApp/TestApp.csproj Added <Http3Support> property to the test project
test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs Included Http3Support in the published settings test
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets Mapped Http3Support property to runtime config option
Comments suppressed due to low confidence (2)

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs:83

  • Consider adding a complementary test case where Http3Support is set to true to verify that enabling HTTP/3 is correctly applied during publish.
            ""System.Net.SocketsHttpHandler.Http3Support"": false,

test/TestAssets/TestProjects/KitchenSink/TestApp/TestApp.csproj:33

  • [nitpick] Adjust the indentation of the <Http3Support> element to align with the surrounding properties (6 spaces) for consistency with the file’s style.
    <Http3Support>false</Http3Support>

@MichalStrehovsky MichalStrehovsky merged commit 53b18f9 into main Jun 27, 2025
27 checks passed
@MichalStrehovsky MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch June 27, 2025 09:43
MichalStrehovsky added a commit to dotnet/runtime that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref #117012
Ref dotnet/sdk#49564
MichalStrehovsky added a commit to MichalStrehovsky/xamarin-macios that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref dotnet/runtime#117012
Ref dotnet/sdk#49564
MichalStrehovsky added a commit that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref dotnet/runtime#117012
Ref #49564
MichalStrehovsky added a commit to MichalStrehovsky/android that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref dotnet/runtime#117012
Ref dotnet/sdk#49564
rolfbjarne pushed a commit to dotnet/macios that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref dotnet/runtime#117012
Ref dotnet/sdk#49564
MichalStrehovsky added a commit that referenced this pull request Jun 27, 2025
Control over this is moving from dotnet/runtime repo build time to publish time so we need to set a default that matches the old build-time setting.

Ref dotnet/runtime#117012
Ref #49564
jonathanpeppers pushed a commit to dotnet/android that referenced this pull request Jun 27, 2025
Context: dotnet/runtime#117012
Context: dotnet/sdk#49564

Control over this is moving from dotnet/runtime repo build time to
publish time so we need to set a default that matches the old build-time setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants