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

I can't achieve obfuscate respecting the original namespaces, class and method names #292

Open
accarvajal opened this issue Aug 26, 2020 · 0 comments
Labels

Comments

@accarvajal
Copy link

I'm trying to configure Obfuscar according documentation with no success in the case I need. I need to obfuscate parameters name and code into methods (as shown below with a red square), except method names, class names and namespace names since main asp.net core project which added this dependency instantiate the class in that namespace and run that method.

image

This is the configuration file.

<Obfuscator>
  <AssemblySearchPath path="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor\2.2.0\lib\netstandard2.0" />
  <Var name="OutPath" value="obfuscar" />
  <Var name="HideStrings" value="true" />
  <Var name="UseKoreanNames" value="false" />
  <Var name="UseUnicodeNames" value="true" />
  <Var name="ReuseNames" value="true" />
  <Var name="RenameFields" value="true" />
  <Var name="RenameProperties" value="true" />
  <Var name="RenameEvents" value="true" />
  <Var name="OptimizeMethods" value="true" />
  <Var name="SuppressIldasm" value="true" />
  <Var name="KeepPublicApi" value="false" />
  <Var name="HidePrivateApi" value="true" />
  <Module file="SicotX.Startup.dll">
    <SkipType name="SicotX.Infrastructure.ServiceStartup.ServiceStartup" skipFields="false" skipProperties="false" />
  </Module>
</Obfuscator>
@lextm lextm added the question label Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants