-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Mark the System.Formats.Nrbf assembly as [Experimental] with SYSLIB5005 #107905
Mark the System.Formats.Nrbf assembly as [Experimental] with SYSLIB5005 #107905
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Tagging subscribers to 'binaryformatter-migration': @adamsitnik, @bartonjs, @jeffhandley, @terrajobst |
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
[assembly: System.Diagnostics.CodeAnalysis.ExperimentalAttribute("SYSLIB5005", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, we don't have any kind of description on experimental that provides more detail in the diagnostic. I thought we did. Should we look at adding that? Someone can go to the docs, but it'd be nice if the message here could say that it's fully supported but the shape might change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we did too until I did one of the earlier experimentals. But yeah, that API doesn't have a message attribute; it always uses a message from Roslyn. I'll submit an API suggestion to add it.
/backport to release/9.0-rc2 |
Started backporting to release/9.0-rc2: https://github.com/dotnet/runtime/actions/runs/10911050092 |
This marks the entire assembly for
System.Formats.Nrbf
as[Experimental]
, claiming the diagnostic ID ofSYSLIB5005
for it as the API shape is subject to change in .NET 10.Because the package has down-level targets, we include an internal copy of
ExperimentalAttribute
for versions earlier than .NET 8 when the attribute was introduced. VS 17.11 respects the internal attribute and provides the same experience for showing the diagnostic, even when targeting .NET Framework and using the package.While making this change, I noticed the
<EnableDefaultPackageReadmeFile>
property was still set tofalse
and thePACKAGE.md
file was therefore not being used in the NuGet package. That has been corrected.Before we merge this PR, we will merge PRs for dotnet/winforms and dotnet/wpf to suppress the
SYSLIB5005
diagnostic where these APIs are referenced. We plan to backport this change torelease/9.0
andrelease/9.0-rc2
.