I recently upgraded to Spices Obfuscator 5.8 an for some reason I am now seeing errors whn trying to build my project. I have a post build event script in my Visual Studio 2010 (.NET 4.0) project that calls Spices Obfuscator. When I upgraded from version 5.6 to version 5.8 I am now seeing strange build errors with the post build events. When I remove the post build event there is no issue. Below is what is in my post build event:
"D:\program files\9Rays.Net\SpicesNet5\Bin\nrobfuscator.exe" /SRC="D:\tfs\APD\Dev\1.5\Source\RC.iloprj" /PATHS="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727";"C:\WINDOWS\Microsoft.NET\Framework\v3.0";"C:\WINDOWS\Microsoft.NET\Framework\v3.5";"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319";"D:\program files\Reference Assemblies\Microsoft\Framework\v3.0";"D:\program files\Reference Assemblies\Microsoft\Framework\v3.5";"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322";"D:\program files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0";"D:\program files\ComponentOne Studio.NET 2.0\bin";"D:\program files\Business Objects\Common\2.8\managed";"D:\program files\Microsoft Visual Studio 9.0\ReportViewer";"D:\3rdPartyTools\Platform\Repair"
The obfuscation appears to run correctly acording to the log files but for some reason when calling nrobfuscator.exe from the post build event, .NET 4.0 is generating an error. Below is the error I am getting. Does anyone have any idea why this would be happening? I have no idea why this is making the post build generate an error64 (what ever that is).
Any help is greatly appericated.
Total obfuscated members 36
Finish time:7:45:56 PM
Finish obfuscating project.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: The command "if Release == Debug goto :debug
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: :release
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: call "D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\..\tools\vsvars32.bat"
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: editbin.exe /NXCOMPAT:NO "D:\tfs\APD\Dev\1.5\Source\RepairCenter\bin\Release\RepairCenter.exe"
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: "D:\program files\9Rays.Net\SpicesNet5\Bin\nrobfuscator.exe" /SRC="D:\tfs\APD\Dev\1.5\Source\RC.iloprj" /PATHS="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727";"C:\WINDOWS\Microsoft.NET\Framework\v3.0";"C:\WINDOWS\Microsoft.NET\Framework\v3.5";"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319";"D:\program files\Reference Assemblies\Microsoft\Framework\v3.0";"D:\program files\Reference Assemblies\Microsoft\Framework\v3.5";"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322";"D:\program files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0";"D:\program files\ComponentOne Studio.NET 2.0\bin";"D:\program files\Business Objects\Common\2.8\managed";"D:\program files\Microsoft Visual Studio 9.0\ReportViewer";"D:\3rdPartyTools\Platform\Repair"
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: goto :exit
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: :debug
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717,9): error MSB3073: :exit" exited with code 64.
========== Build: 20 succeeded or up-to-date, 1 failed, 0 skipped ==========