Silverlight Feeds - All your Silverlight feeds in one place.

Sponsors

Sunday, January 09, 2011

How to inspect Azure package contents

by Corrado Cavalli via Corrado's BLogs on 1/9/2011 10:02:18 AM

Sometimes you need to inspect what’s inside an Azure package content (.cspkg file) before it gets published to the cloud because you need to be sure that some required assemblies are in maybe simply because you need to figure why your app doesn’t work when running from the cloud.
A common case is when you use WCF RIA Services and you forget to include both System.ServiceModel.DomainServices.Hosting and System.ServiceModel.DomainServices.Server inside development package by marking both with CopyLocal=true (any data access related libraries must be included too BTW…)
The trick to allow package inspection is to add an environment variable named _CSPACK_FORCE_NOENCRYPT_ with value set to true.
image

After this, open (or restart) Visual Studio and create a package right clicking on Azure project and selecting Publish option:
image

You can see on Visual Studio output windows that package has been created without encryption and this allow us to treat it as normal.zip file

image

Now you can inspect you package by simply renamig the .cspkg file to .zip

image

inside .cspkg you have several files, rename into .zip extension the one that has .cssx extension (is probably the bigger one…)

image

An inside approot\ClientBin you’ll find (finally!) the xap file that I’m sure you know how to open Smile

Technorati Tags:
email it!bookmark it!digg it!

Original Post: How to inspect Azure package contents

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us