obfuscar / example

Example repo of Obfuscar.
54 stars 26 forks source link

.NET core example #11

Open JadaVonRuth opened 3 years ago

JadaVonRuth commented 3 years ago

Please provide a working .net core 3.1+ example that would work with dotnet build/pack/publish command, stackoverflow says it's possible to use for .net core but its not shown anywhere how. Ideal would be an example for nuget package project.

lextm commented 3 years ago

If your project uses dotnet publish to generate binaries for deployment, then you can follow

https://github.com/obfuscar/obfuscar/issues/132#issuecomment-371606089

JadaVonRuth commented 3 years ago

No, we are using dotnet build + dotnet pack via jenkins build pipeline. I just added it there for completess.

lextm commented 3 years ago

Obfuscar does not support automatic .NET Core assembly resolution, so dotnet pack won't work well with it. No plan to improve in that area but pull requests are welcome.

JandosKh commented 3 years ago

I tried "dotnet publish --self-contained". The problem is it produces platform-specific executables, as explained in the documentation.

lextm commented 3 years ago

@JandosKh ,analyze each of the generated files please, and you will see the platform specific files are irrelevant when your goal is to obfuscate managed assemblies.