microsoft/dotnet-apiport

System.Runtime.CompilerServices.IsReadOnlyAttribute again

Closed this issue · 1 comments

I just analyzed a lib which currently targets net472 against ".NET Standard + Platform Extensions,Version=v2.0".

It fails for #ctor in System.Runtime.CompilerServices.IsReadOnlyAttribute, but links no related code in Visual Studios error list like it usually does for other unsupported members.

As there (in this case) were no further warnings and upstream dependencies I was able to just switch from net472 to netstandard2.0 and it compiled fine, even the warning is gone now. System.Runtime.CompilerServices.IsReadOnlyAttribute got compiled as internal class into the target assembly.

The root of this issue is: #273. Unfortunately, we don't take into account compiler generated code and skip it.