tags:

views:

44

answers:

2

Is there such a thing? Maybe there should be, I don't think Microsoft built anything like this but is there a similar format or framework for ASP.NET that let's you deploy an archive -- that is -- your ASP.NET web application, or module that works in the same way?

A xap file is a self-contained archive. I'm particularly interested in the things they're showing with Silverlight 4 and application partitioning. In that you can drop in additional xap files that extend or show up as new things in your app without recompiling the existing stuff.

A: 

I guess the closest thing would be an assembly. It is totally possible to compile an ASP.NET website into a single assembly. Basically you would need to compile your project normally, then precompile the website and then you could combine all those resulting assemblies into a single assembly using ILMerge.

Andrew Hare
What about *.asxp, *ascx, *.css, *.png all the content and markup that has to be there. If it were just code, it would be one thing, but it's this mix of content and code that needs to be packaged, and then unpackaged or composed into a bigger picture application.
John Leidegren
You can use embedded resources for those.
Pierreten
A: 

You can wrap your application in with the Web Platform Installer and get a single deployable installer for your entire site and the common major dependencies/frameworks, this is the closet equivalent that I'm aware of. Some popular projects have deployments available in this fashion, see here for a list.

Hanselman did a post on how to package your app this way that might be a good starting point to get a feel for the process.

Nick Craver
This is not a question about deployment, in that I wanna deploy and entire application. It's about application partitioning. I wanna deploy an application in small pieces.
John Leidegren
@John - Not sure that's possible as they're all compiled against one another. Can you give an example of how you'd split an application, which pieces?
Nick Craver
There's a lot of fuzz about this on Silverlight TV (search Channel 9) through MEF a surface is exposed and a component or control pops in there when discovered as belonging to this exported surface. Basically any part of the application could sit in one of those self contained xap files as long as their mutual dependencies exists shared somewhere else. It's all very magical and very interesting.
John Leidegren