Red Gate forums :: View topic - SmartAssembly with Windows Azure Packaging
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

SmartAssembly with Windows Azure Packaging

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



Joined: 31 Aug 2011
Posts: 3

PostPosted: Wed Aug 31, 2011 11:55 am    Post subject: SmartAssembly with Windows Azure Packaging Reply with quote

Dear Support,

I am running the following post-build event in VS2010 in my Silverlight Azure app:

"C:\Program Files\Red Gate\SmartAssembly 6\SmartAssembly.com" /build <SAProjName.saproj> /output=$self

which works fine both from the command line and when clicking 'Rebuild' from within VS.

However, when I try to 'Package' the Azure role I get the following error:

The command <command specified above> exited with code 1

which prevents the Azure package from being created.

Any ideas how to get around this?

Thanks
Jens
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Thu Sep 01, 2011 5:20 pm    Post subject: Reply with quote

Note that because of the way the azure build magic works, simply obfuscating assemblies in the output directory isn't sufficient, you need to make sure the copies under /obj/ get replaced with obfuscated versions.

Please try that and see if it helps
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
jensh



Joined: 31 Aug 2011
Posts: 3

PostPosted: Fri Sep 02, 2011 1:01 pm    Post subject: Reply with quote

James,

Please could you clarify what you mean or, better still, post an example of how you have done this? The /obj/ directories on my machine do not contain the XAP file.

Thanks
Jens
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Fri Sep 02, 2011 5:09 pm    Post subject: Reply with quote

Sorry , I don't have an example. Only a some notes from a developer about using SmartAssembly with Azure.

The notes are:

We (SmartAssembly) can't open cspkg files. Making SA work on the assemblies before they're packaged is required. It's probably best to make SA part of your release build process.

Note that because of the way the azure build magic works, simply obfuscating assemblies in the output directory isn't sufficient, you need to make sure the copies under /obj/ get replaced with obfuscated versions.

I hope that makes more sense.
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
jensh



Joined: 31 Aug 2011
Posts: 3

PostPosted: Mon Sep 05, 2011 11:14 am    Post subject: Reply with quote

Any chance of asking the developer in question how they did it? I'm sure documentation around this issue would benefit other users or potential users of SmartAssembly.
Back to top
View user's profile Send private message
james.davies



Joined: 19 Apr 2011
Posts: 46

PostPosted: Tue Sep 06, 2011 7:52 pm    Post subject: Reply with quote

"Making SA work on the assemblies before they're packaged is required. It's probably best to make SA part of your release build process. "

So you will need to create an msbuild script that runs smartassembly after build but before packaging. And that build script will also need to make sure the copies under /obj/ get replaced with obfuscated versions.

Here is a helpful article about using smartAssembly with msbuild

http://www.red-gate.com/supportcenter/Content?p=SmartAssembly&c=SmartAssembly/help/6.2/SA_UsingSmartAssemblyWithMSBuild.htm&toc=SmartAssembly/help/6.2/toc1479859.htm
_________________
Thanks,
James Davies
Technical Support Engineer
Red Gate Software
Back to top
View user's profile Send private message
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