is there a jetbrains annotations source only package?
if not is there any technical reason one should not exist?
is there a jetbrains annotations source only package?
if not is there any technical reason one should not exist?
@simoncropp I don’t think such a package exists, only the one with the binaries does, which I avoid to use. https://www.nuget.org/packages/JetBrains.Annotations
I can’t think of a technical reason why such a package should not exist, it probably would help keeping my copies of the annotation up to date in my projects.
I guess the package does not exist because Rider/R# is able to generate them which is more or less good enough. I think they haven’t changed the annotations for a long time.
JetBrains.Annotations help reduce false positive warnings, explicitly declare purity and nullability in your code, deal with implicit usages of members, support special semantics of APIs in ASP.NET and XAML frameworks and otherwise increase accuracy of JetBrains Rider and ReSharper code inspections. All usages of JetBrains.Annotations attributes are erased from metadata by default, which means no actual binary reference to 'JetBrains.Annotations.dll' assembly is produced. If you need to preserve these attributes in metadata, just define 'JETBRAINS_ANNOTATIONS' conditional compilation symbol in your projects.