Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETSDK1206 error for aspnetcore repo in stage 2 bootstrapping build leg #3515

Closed
mthalman opened this issue Jun 15, 2023 · 5 comments · Fixed by dotnet/installer#16699
Closed
Assignees
Labels
area-upstream-fix Needs a change in a contributing repo

Comments

@mthalman
Copy link
Member

/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]

Example build (internal link)

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@mthalman mthalman self-assigned this Jun 15, 2023
@mthalman
Copy link
Member Author

Logged aspnetcore issue for this: dotnet/sdk#33486

@mthalman
Copy link
Member Author

Reopening as this issue doesn't seem to be resolved by dotnet/installer#16699.

@mthalman mthalman reopened this Jun 19, 2023
@mthalman mthalman moved this from Done to 8.0 Preview 6 in .NET Source Build Jun 19, 2023
@mthalman mthalman moved this from 8.0 Preview 6 to In Progress in .NET Source Build Jun 19, 2023
@mthalman
Copy link
Member Author

What's interesting about the fix in dotnet/installer#16699 is that it partially resolves the issue. Originally, these projects had the error:

Microsoft.AspNetCore.DataProtection.csproj
Microsoft.AspNetCore.DataProtection.Extensions.csproj
Microsoft.AspNetCore.Hosting.csproj
Microsoft.AspNetCore.Session.csproj
Microsoft.AspNetCore.Antiforgery.csproj
Microsoft.AspNetCore.Server.HttpSys.csproj
Microsoft.AspNetCore.Server.IIS.csproj
Microsoft.AspNetCore.Server.Kestrel.csproj
Microsoft.AspNetCore.Authentication.csproj
Microsoft.AspNetCore.csproj
Microsoft.AspNetCore.Authentication.BearerToken.csproj
Microsoft.AspNetCore.Authentication.OAuth.csproj
Microsoft.AspNetCore.Authentication.Cookies.csproj
Microsoft.AspNetCore.Identity.csproj
Microsoft.AspNetCore.Components.Endpoints.csproj
Microsoft.AspNetCore.Components.Server.csproj
Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
Microsoft.AspNetCore.Mvc.Razor.csproj
Microsoft.AspNetCore.Mvc.RazorPages.csproj

After applying that fix, then it seems there is unpredictable behavior because, typically, one or two of these projects will still fail with the error in a build. Sometimes, it all passes. It's all sporadic.

@mthalman
Copy link
Member Author

Fixed by dotnet/installer#16787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-upstream-fix Needs a change in a contributing repo
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants