FuGetGallery
FuGetGallery copied to clipboard
Decompiled code doesn't show interpolated strings properly
Hello
First of all, thanks for this amazing web app, it's really useful and very well done! I especially like how it renders XML docs when navigating through the API. <3
When browsing my own libraries, I've noticed that the decompiled code doesn't seem to be showing interpolated strings properly.
Compare this to this.
E.g. method GetUrl should return $"https://www.youtube.com/watch?v={video.Id}"; but the decompiled code claims it should return return $"""{video.Id}"; which shouldn't even compile.
Also attaching screenshots in case the code changes.

I can see the problem is the literal youtube.com part of the string is passed to WritePrimitiveValue in the literalValue param, but it is ignored.
OTOH, given that the NRefactory library doesn't support C# 6, a better fix might be to switch to Roslyn.