| Author |
Message |
jensh
Joined: 31 Aug 2011 Posts: 3
|
Posted: Wed Aug 31, 2011 11:55 am Post subject: SmartAssembly with Windows Azure Packaging |
|
|
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 |
|
 |
james.davies
Joined: 19 Apr 2011 Posts: 46
|
Posted: Thu Sep 01, 2011 5:20 pm Post subject: |
|
|
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 |
|
 |
jensh
Joined: 31 Aug 2011 Posts: 3
|
Posted: Fri Sep 02, 2011 1:01 pm Post subject: |
|
|
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 |
|
 |
james.davies
Joined: 19 Apr 2011 Posts: 46
|
Posted: Fri Sep 02, 2011 5:09 pm Post subject: |
|
|
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 |
|
 |
jensh
Joined: 31 Aug 2011 Posts: 3
|
Posted: Mon Sep 05, 2011 11:14 am Post subject: |
|
|
| 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 |
|
 |
james.davies
Joined: 19 Apr 2011 Posts: 46
|
|
| Back to top |
|
 |
|