| Author |
Message |
cohowap
Joined: 02 Jun 2011 Posts: 3
|
Posted: Thu Jun 02, 2011 7:43 pm Post subject: Mark XAP released for WP7 using smartassembly.com? |
|
|
Hello,
Mark released works fine in the GUI, but when doing an automated build using smartassembly.com I'm getting the below error.
Obfuscuate:
[exec] SmartAssembly v6.1.0.48
[exec] Copyright c Red Gate Software 2005-2011
[exec] Loading project C:\BUILDROOT\MyApp\MyApp.saproj
[exec] Analyzing...
[exec] Preparing...
[exec] Creating Assembly...
[exec] OK
[exec] SmartAssembly v6.1.0.48
[exec] Copyright c Red Gate Software 2005-2011
[exec] Loading assembly C:\BUILDROOT\MyApp\Obfuscuated\MyApp.xap
[exec] System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Windows\TEMP\963444a3-6261-4c46-a69c-3ee7b47d412a\AppManifest.xaml'.
BUILD FAILED
C:\BUILDROOT\myapp\myapp.build(71,6):
External Program Failed: C:\Program Files\Red Gate\SmartAssembly 6\smartassembly.com (return code was 1)
Here is the code I am using to mark released (NAnt script):
<exec program="smartassembly.com" basedir="${SmartAssembly.ExePath}">
<arg value="/build" />
<arg value="${Build.Root}\MyApp.saproj" />
</exec>
<exec program="smartassembly.com" basedir="${SmartAssembly.ExePath}">
<arg value="/markasreleased" />
<arg value="${Build.Root}\Obfuscuated\MyApp.xap" />
</exec>
It looks as if SA is unpacking the xap then doing something, but before it can, the temp dir is blown out.
Any ideas? Do I really need to markasreleased? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Mon Jun 06, 2011 11:20 am Post subject: |
|
|
Hello,
I would pin this issue down to the rights of the account running the automated build task rather than SmartAssembly. The way SA works with Silverlight is to extract the .XAP built by Visual Studio to the %TMP% folder, process the DLL(s) inside and re-zip the files back into a new .XAP file.
Looks to me as if the issue is that smartassembly.com can't find the extracted files in the temporary folder where they're supposed to be.
You can try running the build task as a different user (from the looks of it, you are using the SYSTEM account) or grant modify rights to the files in c:\windows\temp to whatever account runs the build.
Highly unlikely, but this could also be caused by some AV/security program so you may want to check that out, too. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
medeia
Joined: 30 Apr 2012 Posts: 1
|
Posted: Mon Apr 30, 2012 2:08 pm Post subject: |
|
|
Hi,
I know this is an old topic, but I have the same problem. Could you tell me if you found a solution to the problem?
Thanks! |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Mon Apr 30, 2012 3:58 pm Post subject: |
|
|
No - sorry there was never any follow-up. I'm 99% sure this is nothing to do with SmartAssembly and is an environmental issue. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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