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

Adding constants obfuscation causes mscorlib 4.0.0.0 dependency in class libraries that already reference 2.0.0.0 #522

Open
thetawave opened this issue Dec 10, 2022 · 0 comments
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.

Comments

@thetawave
Copy link

  • ConfuserEx Version: ConfuserEx 1.6.0
  • Target Framework: .NETFramework v3.5
  • Operating System: win 10 64

Steps to Reproduce:

  1. Make class library with framework listed
  2. Add a string constant
  3. Add the following to cs file [assembly: Obfuscation(Exclude = false, Feature = "+constants(mode=normal,elements=SNI,cfg=false)")]// causes mscorlib 4 dep
  4. Compile without confuserEx
  5. Note via dnspy mscorlib 2.0.0.0 is referenced
  6. Compile with MSBuild + confuserEx
  7. Note via dnspy mscorlib 4.0.0.0 is referenced

This causes problems for class libraries used as plugins in some systems. I expect simple string obfuscation to not change mscorlib dependencies.

@thetawave thetawave added potential-bug Something does not seem to be working triage This issue needs some initial analysis. labels Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.
Projects
None yet
Development

No branches or pull requests

1 participant