-
I use ILSpy almost daily, generally for identifying bugs in other people's code pulled from memory crash dumps. I have noticed that ILSpy pretty reliably identifies target frameworks and even correctly identifies things like .NET Standard DLLs with correct version numbers. I'm curious how this is done, the generally popular answers relying on Any chance someone can point me to the location in the source where ILSpy figures that out? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ILSpy uses some mixture of the |
Beta Was this translation helpful? Give feedback.
ILSpy uses some mixture of the
TargetFrameworkAttribute
and the assembly references:ILSpy/ICSharpCode.Decompiler/Metadata/DotNetCorePathFinderExtensions.cs
Line 48 in 4aaf452