C
C#2y ago
blokyk

❔ Using net7 documentation while targeting netstandard2.0

This might be a bit of a dumb question, but is there anyway to make omnisharp/roslyn's tooltips use the xml docs from a newer version of .NET (like .NET 7) while targeting netstandard2.0? What about nullability annotations (although I'm pretty sure that one is impossible without dangerously messing with ref assemblies) ?
7 Replies
Angius
Angius2y ago
Why tho? .NET Standard 2.0 is not .NET 7 It does not have the same features It can't give you tips about, dunno, raw string literals, since they do not exist in Standard 2.0
blokyk
blokyk2y ago
Yes, I know it won't be perfect; it's mostly because some netstandard2.0 APIs seem to be missing docs, while their net7 version has it
Angius
Angius2y ago
Could maybe try to multi-target
blokyk
blokyk2y ago
oh god i'm so dumb ;-; I tried it already, but it didn't work; turns out i just needed to reload omnisharp thanks for the help!
Angius
Angius2y ago
O# moment OMEGALUL it worked out
blokyk
blokyk2y ago
And i also get the nullability stuff for free!
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.