XenocodeRCE / neo-ConfuserEx

Updated ConfuserEX, an open-source, free obfuscator for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
763 stars 89 forks source link

.net core errors and missing functionality #50

Open hhblaze opened 5 years ago

hhblaze commented 5 years ago

Tried to obfuscate .NetCore app and got an error. What is about moving to the newest dnlib with stronger .Net Core support?

Exception: dnlib.DotNet.TypeResolveException: Could not resolve type: System.Runtime.CompilerServices.IAsyncStateMachine (System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   в dnlib.DotNet.TypeRef.ResolveThrow(ModuleDef sourceModule) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\dnlib\src\DotNet\TypeRef.cs:строка 334
   в dnlib.DotNet.TypeRef.ResolveThrow() в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\dnlib\src\DotNet\TypeRef.cs:строка 320
   в Confuser.Renamer.VTableStorage.GetVTable(ITypeDefOrRef type) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Renamer\VTable.cs:строка 342
   в Confuser.Renamer.VTable.ConstructVTable(TypeDef typeDef, VTableStorage storage) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Renamer\VTable.cs:строка 156
   в Confuser.Renamer.VTableStorage.GetOrConstruct(TypeDef type) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Renamer\VTable.cs:строка 332
   в Confuser.Renamer.VTableStorage.GetVTable(ITypeDefOrRef type) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Renamer\VTable.cs:строка 340
   в Confuser.Renamer.AnalyzePhase.Execute(ConfuserContext context, ProtectionParameters parameters) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Renamer\AnalyzePhase.cs:строка 45
   в Confuser.Core.ProtectionPipeline.ExecuteStage(PipelineStage stage, Action`1 func, Func`1 targets, ConfuserContext context) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Core\ProtectionPipeline.cs:строка 138
   в Confuser.Core.ConfuserEngine.RunPipeline(ProtectionPipeline pipeline, ConfuserContext context) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Core\ConfuserEngine.cs:строка 219
   в Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, CancellationToken token) в G:\Users\Xenocode\Source\Repos\neo-ConfuserEx\Confuser.Core\ConfuserEngine.cs:строка 173
Either share a link to download the file or e-mail it to me.

Program is quite big, and starts from async Main

public static async Task Main(string[] args)
MrM40 commented 5 years ago

.Net core 2.2: Error: [ERROR] Failed to resolve a type, check if all dependencies are present in the correct version. Exception: dnlib.DotNet.TypeResolveException: Could not resolve type: System.Runtime.CompilerServices.ICriticalNotifyCompletion (System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)

Project file: `<project ...>

`