Hack Forums
[C#] Dynamic method conversion .NET Framework-> .NET Core - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Dynamic method conversion .NET Framework-> .NET Core (/showthread.php?tid=6129005)



Dynamic method conversion .NET Framework-> .NET Core - debug - Dec 22, 2020

Hi,

This is probably a long shot, but I'm looking for a way to convert individual methods from an app compiled in .net framework (DNFM) to .net core (DNCORE)

The idea here is to create portable functions on the fly from framework -> .net core 3.1.

Currently my approach is using Mono.Cecil to grab the methods and then add them to a dummy .net core class library. Problem is, not all opcodes from DNFM exist in DNCORE.


Does anyone else have some sort of creative approach to this solution?



Thank you 😎