Some `Microsoft.AspNetCore.Server.IIS.dll` APIs are not available on source-build
- 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
Assessment
This issue has not been assessed yet.