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

.NET core example #11

Open
JadaVonRuth opened this issue Dec 22, 2020 · 5 comments
Open

.NET core example #11

JadaVonRuth opened this issue Dec 22, 2020 · 5 comments
Labels

Comments

@JadaVonRuth
Copy link

JadaVonRuth commented Dec 22, 2020

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
Copy link
Member

lextm commented Dec 22, 2020

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

obfuscar/obfuscar#132 (comment)

@lextm lextm added the question label Dec 22, 2020
@JadaVonRuth
Copy link
Author

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

@lextm
Copy link
Member

lextm commented Dec 22, 2020

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
Copy link

JandosKh commented Jan 7, 2021

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

@lextm
Copy link
Member

lextm commented Jan 7, 2021

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

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

3 participants