-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Could not resolve assembly: System.Web.HttpUtility #335
Comments
.NET Core 3.1 isn't working very well with ConfuserEx is general. I'm referring to #302 In your case you can try to add the path to .NET Core 3.1 as probe path and see how far that get's you. <probePath>C:\Program Files\dotnet\sdk\3.1.407</probePath> If any assemblies are resolved with the wrong version, you may need to add those assemblies as external references. |
Where should I put C:\Program Files\dotnet\sdk\3.1.407 in the project file ? My path is C:\Program Files\dotnet\sdk\5.0.100 |
At the very bottom inside the |
I get the an error when I put it in Error MSB4067 The element probePath beneath element is unrecognized. EDIT:
|
You have to put the probe path into the
ConfuserEx currently only work properly when using the .NET Framework. |
"You have to put the probe path into the *.crproj file, not into the *.csproj" dont understand ? And changed it 2.1 and:
|
If you open an assembly in ConfuserEx, you can save the project in a |
Like this ? vv, And it still gives the same error :( |
The file seems okay. Where is It something like <module path="a\bin\Release\netcoreapp2.1\System.Web.HttpUtility.dll" external="true" /> missing from your project, as in: Is this file present in your output directory? Also I advice to mark the assemblies you don't want obfuscated as external: <project outputDir="B:\Repos\a\Confused" baseDir="B:\Repos\a" xmlns="http://confuser.codeplex.com">
<rule pattern="true" preset="maximum" inherit="false" />
<module path="a\bin\Release\netcoreapp2.1\a.dll" />
<module path="a\bin\Release\netcoreapp2.1\Newtonsoft.Json.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\System.CodeDom.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\System.Management.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\System.Security.AccessControl.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\System.Security.Principal.Windows.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\Yove.Proxy.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\Microsoft.Win32.Registry.dll" external="true" />
<module path="a\bin\Release\netcoreapp2.1\BouncyCastle.Crypto.dll" external="true" />
<probePath>C:\Program Files\dotnet\sdk\2.1.814</probePath>
</project> As they are located in the same directory as your main assembly, you could also remove them from the file, in that case they won't get copied to the output directory mind you. Long story short: ConfuserEx can't resolve the assembly. That is the problem. This means you either have to declare it as |
Ok, I didn't really need system.web so I removed it (needed it to url enocde a string) either way Now when I try and protect it give a new error
` |
It's telling you the external modules you need to define by hand to get it working one by one. The next one is |
The issue was worked around by switching to .NET Framework 4.8. |
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. |
Error from confuserex:
[ERROR] Failed to resolve dependency of 'a.dll'. Exception: dnlib.DotNet.AssemblyResolveException: Could not resolve assembly: System.Web.HttpUtility, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 at dnlib.DotNet.Extensions.ResolveThrow(IAssemblyResolver self, IAssembly assembly, ModuleDef sourceModule) at Confuser.Core.ConfuserEngine.Inspection(ConfuserContext context) Failed at 01:21, 0:02 elapsed.
my project file:
a.txt
The text was updated successfully, but these errors were encountered: