Introduction
We have heard it in books by speakers and even Microsoft. "When hosting a Silverlight application, make sure your file ends in .XAP". But does it really have to end in .XAP?
The Answer
The answer is surprisingly no. It is time to end the myth that when hosting a Silverlight application, it has to end in .XAP. Let’s look at a sample Silverlight project first.
File-> New Project
When you create a new Silverlight Project and inspect the ClientBin folder, you will see that the filename ends in .XAP.
What do you think would happen if we renamed this file to .zip and updated our hosting page to look like the following?
OK, now this is interesting
If we run the application, it works just like it does with the file named .XAP. We can view the page source on the Silverlight application and verify this.
Read more: Codeproject
We have heard it in books by speakers and even Microsoft. "When hosting a Silverlight application, make sure your file ends in .XAP". But does it really have to end in .XAP?
The Answer
The answer is surprisingly no. It is time to end the myth that when hosting a Silverlight application, it has to end in .XAP. Let’s look at a sample Silverlight project first.
File-> New Project
When you create a new Silverlight Project and inspect the ClientBin folder, you will see that the filename ends in .XAP.
What do you think would happen if we renamed this file to .zip and updated our hosting page to look like the following?
OK, now this is interesting
If we run the application, it works just like it does with the file named .XAP. We can view the page source on the Silverlight application and verify this.
Read more: Codeproject