dotnet / dotnet/sdk

.NET SDK 10 breaking change: Microsoft.DotNet.ApiCompat.Tool CP0012 : Cannot remove 'abstract' keyword from member

Open
#51,783 7 comments 1 reaction 0 assignees View on GitHub
Area-ApiCompat
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

In updating .NET SDK from 9.0.307 to 10.0.100, our build broke with this error:

> Error CP0012: Cannot remove 'abstract' keyword from member '`Microsoft.VisualStudio.Extensibility.Editor.TextViewTagger.RequestTagsAsync(Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection, bool, System.Threading.CancellationToken)`'

We were already applying package validation in our build, and apparently .NET 10 SDK finds issues that .NET 9 SDK did not.

I'm glad you catch more issues than you used to. And because we use global.json to pin the SDK that we use, we're able to very easily determine why the error shows up now, and we can contain the build break in just a PR that updates the SDK until we can mitigate it and merge it into our main branch together so that we never have downtime as a team.
I'm merely filing this issue as requested by the .NET team to track times that .NET SDK updates break our builds.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.