Skip to content

Add test to compare public API between Microsoft-built and source-built SDKs #4795

Open
@mthalman

Description

@mthalman

A recent issue occurred in .NET 9 where the Microsoft.AspNetCore.Server.HttpSys assembly was essentially empty in the source-built SDK: dotnet/aspnetcore#59166. This was not caught prior to GA because there were no tests that validated the usage of this assembly on a source-built SDK.

We should consider defining a test, similar to the exists tests in SdkContentTests.cs, that compares the public API between the Microsoft-built and source-built SDKs. The assertion is that the APIs are identical between the two. As a general purpose test, this would apply to all assemblies and would have caught this issue well in advance of GA release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingImprovements in CI and testing

    Type

    No type

    Projects

    Status

    10.0 RC2

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions