neo-ConfuserEx icon indicating copy to clipboard operation
neo-ConfuserEx copied to clipboard

.net core errors and missing functionality

Open hhblaze opened this issue 6 years ago • 1 comments

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)

hhblaze avatar Jun 24 '19 13:06 hhblaze

.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 ...> <rule pattern="true"> <protection id="constants" /> </rule> <module path="C:\temp\AES\WitAES_Core.dll"> <rule pattern="true" inherit="false"> <protection id="constants" /> </rule> </module> <module path="C:\temp\AES\System.Runtime.dll" /> <module path="C:\temp\AES\System.Runtime.Extensions.dll" /> <module path="C:\temp\AES\System.Security.Cryptography.Algorithms.dll" /> <module path="C:\temp\AES\System.Security.Cryptography.Primitives.dll" /> </project>

MrM40 avatar Aug 02 '19 07:08 MrM40