You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a msbuild Target which calls the obfuscar tool on the assemblies output of a build (in AfterBuild). I can't get it to work fully when packing a SDK Extra project.
When using /t:Pack, the nuget package contains an obfuscated assembly only for the SDK extra project, and a non obfuscated assembly for the library project that the SDK project is referencing.
The most strange thing is that all assemblies in each output folder of the SDK Extra project are correctly obfuscated.
It seems that the packing process ignores the output folder for referenced projects. I know that referenced projects are normally ignored by the packing target, which adds a nuget dependency instead (each project should have its nuget). I used this "trick" to get it into the main package instead:
Ok i found the .nuspec file that the packing process is generating. It uses the output path of the referenced project for its assembly instead of the output path of the SDK Extra project (which contains the same assembly but obfuscated).
The problem is that i can't obfuscate the output of the referenced project alone. All assemblies need to be obfuscated at the same time.
Do you know an extension point where i can fix the content of this nuspec file ?
Hey again ! 😀
I have a msbuild Target which calls the obfuscar tool on the assemblies output of a build (in AfterBuild). I can't get it to work fully when packing a SDK Extra project.
When using /t:Pack, the nuget package contains an obfuscated assembly only for the SDK extra project, and a non obfuscated assembly for the library project that the SDK project is referencing.
The most strange thing is that all assemblies in each output folder of the SDK Extra project are correctly obfuscated.
It seems that the packing process ignores the output folder for referenced projects. I know that referenced projects are normally ignored by the packing target, which adds a nuget dependency instead (each project should have its nuget). I used this "trick" to get it into the main package instead:
An excerp of the obfuscar target:
The text was updated successfully, but these errors were encountered: