XDev
XDev

Reputation: 155

How to create a nuget package from DLLs after obfuscating them

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.

Upvotes: 3

Views: 863

Answers (1)

Vincent
Vincent

Reputation: 3304

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.

Upvotes: 1

Related Questions