M
M
mr_blond972017-07-20 21:37:55
ASP.NET
mr_blond97, 2017-07-20 21:37:55

How to obfuscate the output file before building the NuGet package?

Input data:

Project on .net core, project type: csproj, assembly is done through the MyGet service. The obfuscator is still unknown, while I choose which one to use (advise, obfuscator if you know which one is better to use).


You need to add a task to the project build that will obfuscate the output file before building the NuGet package and uploading it to the Feed. Since this will happen through the MyGet build service , it is necessary that the build work not only on the local computer, but also on the MyGet service when it pulls the project sources from the bitbucket and starts building.
Example: I will have a dotfuscator. There are several .csproj projects in the solution, they must be obfuscated and replaced in the artifacts folder with the original, non-obfuscated assemblies.
The thing is that the build service from myget does not have a pre-installed dotfuscator, so post-build will not be able to obfuscate the artifacts.
How to add an obfuscation task to post-build in this case?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question