3

Hi I have a class Library project I built it DLLs and I apply obfuscation on the DLLs using a software, after that I got new obfuscated DLLs.

so now my question is how can I create nuget package just from the obfuscated DLLs ?

thank you in advance.

XDev
  • 125
  • 1
  • 8
  • Modern obfuscators usually provide a task for MSBuild (e.g https://www.armdot.com/docs/msbuild-obfuscation-task.html) that allows to obfuscate the assembly. So the package already includes obfuscated assemblies. – Artem Razin Dec 24 '20 at 11:01
  • Hi, have u found any solutions? – Vincent Aug 02 '21 at 11:57

1 Answers1

1

I found the solution, One is using post-build event to automatically create nukpkg.

Some code:

//Add your obfucate code     

//--no-build is needed
dotnet pack --no-build

//upload to nuget
nuget setapikey xxx -source xxxxxx
nuget push xx.nupkg -source xxxxxx

Or you can use NuGetPackageExplorer to manually create a nupkg and upload to nuget manually.

Vincent
  • 3,124
  • 3
  • 21
  • 40