Bonjour,
quand je veux ofusquer une dll ou exe net framwork , ca fonctionne nickel,
quand je veux ofusquer une dll dotnet net 8.0 (une dll tout simple) avec ceux-ci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
namespace testdllnet
{
    public class Class1
    {
 
    }
}

alors j'ai ce message d'erreur de ConfuserEx 2:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[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.RefSafetyRulesAttribute (System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   à dnlib.DotNet.TypeRef.ResolveThrow(ModuleDef sourceModule)
   à dnlib.DotNet.Extensions.ResolveTypeDefThrow(ITypeDefOrRef tdr)
   à Confuser.Renamer.Analyzers.InterReferenceAnalyzer.Analyze(ConfuserContext context, INameService service, ProtectionParameters parameters, IDnlibDef def)
   à Confuser.Renamer.AnalyzePhase.Analyze(NameService service, ConfuserContext context, ProtectionParameters parameters, IDnlibDef def, Boolean runAnalyzer)
   à Confuser.Renamer.AnalyzePhase.Execute(ConfuserContext context, ProtectionParameters parameters)
   à Confuser.Core.ProtectionPipeline.ExecuteStage(PipelineStage stage, Action`1 func, Func`1 targets, ConfuserContext context)
   à Confuser.Core.ConfuserEngine.RunPipeline(ProtectionPipeline pipeline, ConfuserContext context)
   à Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, CancellationToken token)
[ERROR] ---BEGIN DEBUG INFO---
[ERROR] Installed Framework Versions:
[ERROR]     v2.0.50727  2.0.50727.4927
[ERROR]     v3.0  3.0.30729.4926
[ERROR]     v3.5  3.5.30729.4926
[ERROR]     v4
[ERROR]     Client  4.8.09032
[ERROR]     Full  4.8.09032
[ERROR]     v4.0
[ERROR]     Client  4.0.0.0
[ERROR]     v4.5 533320
[ERROR] 
[ERROR] Cached assemblies:
[ERROR]     testdllnet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (E:\source\projet\C#\test\testdllnet\bin\Debug\net8.0\testdllnet.dll)
[ERROR]         System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Failed at 11:19, 0:00 elapsed.

Avez vous une solution ?

Merci