The Silverlight application created in the previous section was hosted on an ASP.NET page, but we now want to host the Silverlight application on a SharePoint site. Hosting a Silverlight application involves two steps:
1. Deploy the XAP file either to some folder in <14 Hive>, ideally the Layouts folder, or to some document library in the SharePoint site.
2. Reference the XAP file in the out of the box Silverlight web part or some custom web part.
Add a new Empty SharePoint project to the HelloWorldSLApp solution and name it HelloWorldSLDeploy. Right-click the SharePoint project and click Add, SharePoint “Layouts” Mapped Folder. The Layouts folder gets added to the Project. A subfolder HelloWorldSLDeploy ...