Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.net core errors and missing functionality #50

Open
hhblaze opened this issue Jun 24, 2019 · 1 comment
Open

.net core errors and missing functionality #50

hhblaze opened this issue Jun 24, 2019 · 1 comment

Comments

@hhblaze
Copy link

hhblaze commented Jun 24, 2019

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
Copy link

MrM40 commented Aug 2, 2019

.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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants