Home - Forums-.NET - Spices.Net - VS 2010 IDE - How do I "stop" the events that happen after the "AfterProjectObfuscation" event?

Spices.Net

NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.

This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler

VS 2010 IDE - How do I "stop" the events that happen after the "AfterProjectObfuscation" event?
Link Posted: 30-Aug-2010 09:54
Hi! In the VS 2010 IDE you "always" do the following at the "end", which is after the AfterProjectObfuscation event.

Here's some example output:

---- Finish running AfterProjectObfuscation event ----

File C:\Users\ct\Documents\Visual Studio 2010\Projects\SQLBackup\SqlBackUp\bin\Release\SQLBackup.exe updated.
Update files: File C:\Users\ct\Documents\Visual Studio 2010\Projects\SQLBackup\Spices_output\sqlbackup.exe copied to C:\Users\ct\Documents\Visual Studio 2010\Projects\SQLBackup\SqlBackUp\obj\Release\SQLBackup.exe
Update files: File C:\Users\ct\Documents\Visual Studio 2010\Projects\SQLBackup\Spices_output\sqlbackup.exe copied to C:\Users\ct\Documents\Visual Studio 2010\Projects\SQLBackup\SqlBackUp\bin\Release\sqlbackup.exe

You're copying the obfuscated exe to both the project bin and project obj directories.

Using the Spices.Net IDE, this does not happen.

How can I turn this feature off?

NOTE: I figured out my other issue with the error I was getting trying to step into my code after obfuscation completes. I needed to both be in debug mode and set the StripDebugInfo setting to false.

Best regards,
ct
Link Posted: 30-Aug-2010 10:19
  1. With VSIP you can clear SaveToDirectory property to direct output of obfuscated assemblies to the sames place (usually to the \bin\Release or \Bin\Debug)
  2. Update of files in the \Bin\Release or \Bin\Debug foldes is necessary to prepare VS project/solution to start debugging application.
  3. You can use MSBuild integration to get Spices.Obfuscator integrated more flexible and apply different obfuscation options conditionally. How to integrate MSBuild tasks provided by Spices.Obfuscator you can read the Spices.Net Manual (Spices.Obfuscator \ MSBuild Integration chapter)
Link Posted: 30-Aug-2010 11:24
OK, this is useful information and at the moment, being since I figured out how to step though the code without getting an error, I think everything is OK the way it it.

I will look closely at the MSBuild integration.

Best regards,
ct