Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

System.Runtime.CompilerServices.IsReadOnlyAttribute again #721

Closed
springy76 opened this issue Nov 6, 2018 · 1 comment
Closed

System.Runtime.CompilerServices.IsReadOnlyAttribute again #721

springy76 opened this issue Nov 6, 2018 · 1 comment

Comments

@springy76
Copy link

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.

@conniey
Copy link
Member

conniey commented Nov 8, 2018

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

@conniey conniey closed this as completed Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants