Red Gate forums :: View topic - Calling SmartAssembly from MSBuild Exec task in TFS build
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Calling SmartAssembly from MSBuild Exec task in TFS build

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
doobop



Joined: 13 Feb 2014
Posts: 4

PostPosted: Fri Jun 27, 2014 4:23 pm    Post subject: Calling SmartAssembly from MSBuild Exec task in TFS build Reply with quote

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:
    <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.
Back to top
View user's profile Send private message
doobop



Joined: 13 Feb 2014
Posts: 4

PostPosted: Mon Jun 30, 2014 7:28 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 15 Aug 2004
Posts: 9

PostPosted: Mon Jun 30, 2014 2:49 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group