example icon indicating copy to clipboard operation
example copied to clipboard

.NET core example

Open JadaVonRuth opened this issue 4 years ago • 5 comments

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.

JadaVonRuth avatar Dec 22 '20 14:12 JadaVonRuth

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

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

lextm avatar Dec 22 '20 16:12 lextm

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

JadaVonRuth avatar Dec 22 '20 17:12 JadaVonRuth

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.

lextm avatar Dec 22 '20 18:12 lextm

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

JandosKh avatar Jan 07 '21 13:01 JandosKh

@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.

lextm avatar Jan 07 '21 13:01 lextm