Skip to content

NETSDK1206 error when building the aspnetcore repo with latest 8.0 Preview 6 SDK build #33486

Open
@mthalman

Description

@mthalman

The following error occurs when attempting to build the aspnetcore repo with the latest 8.0 Preview 6 SDK build (e.g. 8.0.100-preview.6.23315.8):

/vmr/.dotnet/sdk/8.0.100-preview.6.23315.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(267,5): error NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win. Affected libraries: System.Security.Cryptography.Pkcs. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details. [/vmr/src/aspnetcore/artifacts/source-build/self/src/src/DataProtection/DataProtection/src/Microsoft.AspNetCore.DataProtection.csproj::TargetFramework=net8.0]

This is a new warning check added by #32970.

This was caught by source-build's bootstrapping build workflow which validates the product can build itself using the SDK it produced.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions