How to Deploy the Silverlight Application
Microsoft Silverlight allows you to develop cross-platform applications for websites, computers and handheld devices. With Silverlight, you can create interactive applications that will work across a variety of operating systems, browsers and devices. Once a Silverlight application has been developed, deployment is the next step. Deploying a Silverlight application is the easiest part of the entire development process. Developers have two main options when deploying Silverlight applications, depending on the type of application.
Instructions
-
Copy and Paste
-
1
Open the folder containing the XAP files for your Silverlight application. Double-click the folder to open it. The folder name and location will vary.
According to Microsoft, XAP files are basically .zip files containing the assembly manifest and other assemblies for your application.
-
2
Copy all XAP files. Select all XAP files and press “Ctrl” plus “C” or right-click any selected file and choose “Copy.”
-
-
3
Paste the files into a public folder on your Web server. This folder must be a shared, or public, folder in order for users to access the files and run the application. Either press “Ctrl” plus “V” or right-click anywhere in the public folder and select “Paste.”
If your files are not on the same computer as your Web server, copy the files to a flash drive first. Insert the drive into the Web server and then paste the files to the public folder.
Create References
-
4
Create a new website or Web project on the same Web server as the Silverlight application. Microsoft recommends using Visual Studio to do this because Visual Studio 2008 was developed to easily add Silverlight references.
-
5
Choose “Silverlight Applications” from within the Visual Studio menu.
-
6
Choose “Add” and browse to the location of each necessary XAP file.
-
7
Save your project by going to “File” and “Save.”
-
1
Tips & Warnings
When using the second method, all added references are automatically synchronized, even when you make changes, as long as the files remain on the same server and unmoved.
Other development kits can be used to create a website or Web project. The steps for adding a reference will be different, however. References can usually be added through the code portion or through the “Tools” menu of the development kit. See the “Help” section of your application for further instructions on adding references to Silverlight applications.
Retain a backup of all copied files. If the Web server fails for any reason, you may lose your files.