Skip to content

API differences between MSFT and source-built SDKs #5344

@NikolaMilosavljevic

Description

@NikolaMilosavljevic

The following is the data collected by ApiCompat tool in strict mode, when diffing MSFT and SB built SDKs.

aspnetcore

shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll

error CP0001: Type 'Microsoft.AspNetCore.Hosting.WebHostBuilderHttpSysExtensions' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.AuthenticationManager' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.AuthenticationSchemes' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.ClientCertificateMethod' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.DelegationRule' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.Http503VerbosityLevel' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.HttpSysDefaults' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.HttpSysException' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.HttpSysOptions' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.IHttpSysRequestDelegationFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.IHttpSysRequestInfoFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.IHttpSysRequestPropertyFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.IHttpSysRequestTimingFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.IServerDelegationFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.RequestQueueMode' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.TimeoutManager' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.UrlPrefix' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.HttpSys.dll

shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll

error CP0001: Type 'Microsoft.AspNetCore.Builder.IISServerOptions' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll
error CP0001: Type 'Microsoft.AspNetCore.Http.Features.IServerVariablesFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.IIS.BadHttpRequestException' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.IIS.HttpContextExtensions' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.IIS.IIISEnvironmentFeature' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll
error CP0001: Type 'Microsoft.AspNetCore.Server.IIS.IISServerDefaults' exists on msft/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll but not on sb/shared/Microsoft.AspNetCore.App/x.y.z/Microsoft.AspNetCore.Server.IIS.dll

runtime

sdk/x.y.z/System.ComponentModel.Composition.dll

error CP0002: Member 'System.ComponentModel.Composition.Primitives.ComposablePartException.ComposablePartException(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)' exists on sb/sdk/x.y.z/System.ComponentModel.Composition.dll but not on msft/sdk/x.y.z/System.ComponentModel.Composition.dll
error CP0008: Type 'System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo' does not implement interface 'System.IEquatable<System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo>' on msft/sdk/x.y.z/System.ComponentModel.Composition.dll but it does on sb/sdk/x.y.z/System.ComponentModel.Composition.dll

roslyn

sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll

All of these are conditioned under #if !NET8_0_OR_GREATER blocks.

SB assembly contains public type forwarders for these types. MSFT assembly targets .NET 6 so it is expected that these types are missing.

error CP0001: Type 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute' exists on sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll but not on msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
error CP0001: Type 'System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute' exists on sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll but not on msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
error CP0001: Type 'System.Runtime.CompilerServices.CollectionBuilderAttribute' exists on sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll but not on msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
error CP0001: Type 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute' exists on sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll but not on msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
error CP0001: Type 'System.Runtime.CompilerServices.RequiredMemberAttribute' exists on sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll but not on msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll

source-build-reference-packages - external packages

sdk/x.y.z/DotnetTools/dotnet-user-jwts/x.y.z/tools/net10.0/any/Microsoft.IdentityModel.Tokens.dll

error CP0001: Type 'Microsoft.IdentityModel.Tokens.EcdhKeyExchangeProvider' exists on msft/sdk/x.y.z/DotnetTools/dotnet-user-jwts/x.y.z/tools/net10.0/any/Microsoft.IdentityModel.Tokens.dll but not on sb/sdk/x.y.z/DotnetTools/dotnet-user-jwts/x.y.z/tools/net10.0/any/Microsoft.IdentityModel.Tokens.dll
error CP0002: Member 'bool Microsoft.IdentityModel.Tokens.SignatureProvider.Sign(System.ReadOnlySpan<byte>, System.Span<byte>, out int)' exists on msft/sdk/x.y.z/DotnetTools/dotnet-user-jwts/x.y.z/tools/net10.0/any/Microsoft.IdentityModel.Tokens.dll but not on sb/sdk/x.y.z/DotnetTools/dotnet-user-jwts/x.y.z/tools/net10.0/any/Microsoft.IdentityModel.Tokens.dll

sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Humanizer.dll

error CP0003: sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Humanizer.dll assembly version '1.0.0.0' should be equal to or higher than msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Humanizer.dll version '2.14.0.0'.

sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Microsoft.Build.Locator.dll

error CP0003: sb/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Microsoft.Build.Locator.dll assembly version '1.8.1.0' should be equal to msft/sdk/x.y.z/DotnetTools/dotnet-watch/x.y.z/tools/net10.0/any/Microsoft.Build.Locator.dll version '1.0.0.0'.

sdk/x.y.z/Microsoft.ApplicationInsights.dll

error CP0003: sb/sdk/x.y.z/Microsoft.ApplicationInsights.dll assembly version '2.23.0.449' should be equal to msft/sdk/x.y.z/Microsoft.ApplicationInsights.dll version '2.23.0.29'.
error CP0003: msft/sdk/x.y.z/Microsoft.ApplicationInsights.dll assembly public key token '31bf3856ad364e35' does not match with sb/sdk/x.y.z/Microsoft.ApplicationInsights.dll 'f23a46de0be5d6f3'.

sdk/x.y.z/Microsoft.VisualStudio.SolutionPersistence.dll

error CP0001: Type 'System.Runtime.CompilerServices.IsExternalInit' exists on msft/sdk/x.y.z/Microsoft.VisualStudio.SolutionPersistence.dll but not on sb/sdk/x.y.z/Microsoft.VisualStudio.SolutionPersistence.dll
error CP0001: Type 'System.Runtime.CompilerServices.RequiresLocationAttribute' exists on msft/sdk/x.y.z/Microsoft.VisualStudio.SolutionPersistence.dll but not on sb/sdk/x.y.z/Microsoft.VisualStudio.SolutionPersistence.dll

sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll

error CP0008: Type 'Newtonsoft.Json.JsonReader' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.JsonTextReader' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.JsonTextWriter' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.JsonValidatingReader' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.JsonWriter' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.Bson.BsonReader' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.Bson.BsonWriter' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.Linq.JTokenReader' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0008: Type 'Newtonsoft.Json.Linq.JTokenWriter' does not implement interface 'System.IAsyncDisposable' on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but it does on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll
error CP0001: Type 'Newtonsoft.Json.Serialization.DynamicValueProvider' exists on msft/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll but not on sb/sdk/x.y.z/Sdks/Microsoft.NET.Sdk.Razor/tools/Newtonsoft.Json.dll

Metadata

Metadata

Labels

area-upstream-fixNeeds a change in a contributing repo

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions