ConfuserEx icon indicating copy to clipboard operation
ConfuserEx copied to clipboard

.NET Core 3.1 | Failed to resolve a type, check if all dependencies are present in the correct version

Open wgos opened this issue 6 years ago • 5 comments

Greetings. For some reason, I can't obfuscate my .NET Core 3.1 assemblies. Stacktrace on pastebin Seems like Core App referencing its own System.Runtime assembly but Confuser loads up System.Runtime from .NET Framework, not Core: Exception: dnlib.DotNet.TypeResolveException: Could not resolve type: System.Runtime.CompilerServices.IAsyncStateMachine (System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)

[ERROR] System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll)

What I've tried:

  • Switching to lastest version of Confuser on CI-server
  • Adding .NET Core's System.Runtime
  • Replaceing assembly in C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\ for .NET Core one

wgos avatar Nov 23 '20 06:11 wgos

.NET Core is not supported yet. It's a duplicate, see #58, #106, and other

KvanTTT avatar Nov 23 '20 10:11 KvanTTT

Thanks. I've already checked entire tracker so sorry for another dupe

By the way I think that support for Core should not be claimed at the description on project's web page in this case 😄

wgos avatar Nov 23 '20 12:11 wgos

But it says in the readme that supports .netcore :\ I am trying to put this to work in a wpf .netcore 3.1 without success

jafreitas90 avatar Dec 11 '20 19:12 jafreitas90

Why is netcore support claimed if it's not present? This makes no logical sense. I'd also like to point out that this issue ONLY happens when using async/await in .net core projects. Anything that avoids dynamic and async/await still works fine.

KatDevsGames avatar Jan 13 '21 06:01 KatDevsGames

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 13 '21 04:02 github-actions[bot]