Open jonathanpeppers opened 3 hours ago
I don't know what SYSLIB is. But is isn't roslyn :)
@CyrusNajmabadi this is if you have [Obsolete(DiagnosticId="
and put SYSLIB0024
. Maybe it is any [Obsolete]
in a reference assembly?
Ok, this works fine, I get a warning if I call it:
[Obsolete]
public void Test()
{
}
This doesn't produce a warning at all:
[Obsolete("whoopsies", DiagnosticId = "SYSLIB0024")]
public void Test()
{
}
Version Used: .NET SDK 10.0.100-alpha.1.24573.1
We noticed this from Maestro/codeflow here:
Steps to Reproduce:
AppDomain.CreateDomain("test")
in .NET 10SYSLIB0024
warningRepro: testroslyn.zip
Note that this seems to work fine using
net9.0
and a .NET 9 SDK.Diagnostic Id:
Expected Behavior:
I get a
SYSLIB0024
warning.Actual Behavior:
I get no
SYSLIB0024
warning.Other info:
Note that if I open
packs\Microsoft.NETCore.App.Ref\10.0.0-alpha.1.24570.9\ref\net10.0\System.Runtime.dll
, it looks correct:The warning also seems to work fine if I declare an
[Obsolete]
method within the C# file.