Calling SmartAssembly from MSBuild Exec task in TFS build

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Calling SmartAssembly from MSBuild Exec task in TFS build

Postby doobop » Fri Jun 27, 2014 4:23 pm

I need to generate Obfuscated code on our build server. Our application uses log4Net so we are calling SmartAssembly from an Exec task rather than the SmartAssembly.Build task. This works fine on my local machine, but when I run it through TFS, it fails with an exit code of 1.

My build project contains this line (R: is a mapped drive):
Code: Select all
    <Exec Command="&quot;C:\\Program Files\\Red Gate\\SmartAssembly 6\\SmartAssembly&quot; /build R:\\MyApp\\DtsFiberView.saproj" />


So, I'm wondering if someone has an example of a working Exec call in TFS and if this is all I need to do (and I have another problem) or if there are other preperations I need to perform with setting paths or anything else.

Thanks.
doobop
 
Posts: 4
Joined: Thu Feb 13, 2014 10:20 pm

Postby doobop » Mon Jun 30, 2014 7:28 am

The issue was found. There were a couple of issues. One dealt with how the drive mapping resolved on the TFS build machine. The second was were SmartAssembly pulled assemblies. Since it may pull things from the GAC, there were .dll's on my machine that weren't present on the build machine.
doobop
 
Posts: 4
Joined: Thu Feb 13, 2014 10:20 pm

Postby Admin » Mon Jun 30, 2014 2:49 pm

Thanks for following up! It is easy to get caught out when moving projects to a build server. I'm glad it's sorted out.
Admin
Site Admin
 
Posts: 9
Joined: Sun Aug 15, 2004 10:44 am


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests