dotnet / dotnet/aspnetcore

Some `Microsoft.AspNetCore.Server.IIS.dll` APIs are not available on source-build

Open
#63,783 1 comment 1 reaction 0 assignees View on GitHub
area-infrastructure feature-iis
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

Related to https://github.com/dotnet/aspnetcore/issues/63782

It seems that some sources are not compiled on source-build. This was introduced with https://github.com/dotnet/aspnetcore/pull/50685 due to a new dependency that could not be built on source-build.

Is this still the case? Are there are any options to enable this?

Here's the list differences between source-built binary and the one produced in regular (Microsoft) build on Linux.

```
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.