Visual Studio 2010 使用 Silverlight 项目部署/发布网站
如何在 Visual Studio 2010 中使用 Silverlight 项目部署/发布网站?
How to deploy/publish a website with Silverlight project in Visual Studio 2010?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
与发布任何其他网站的方式相同,Silverlight 二进制文件应包含在 Web 项目的 ClientBin 文件夹中。
The same way as you would publish any other website, the Silverlight binary file should be included in the ClientBin folder of the Web project.
构建并测试 (F5) 您的 Silverlight 项目。当您生成和测试 Silverlight 项目时,将在 \bin\debug 文件夹中创建以下文件,并且 Expression Blend 尝试打开起始网页。
ProjectName.xap
一个压缩存档,其中包含上述 Silverlight 应用程序的所有内容和资源。用户在浏览器上下载此文件并使用 Silverlight 插件运行它。
将 ProjectName.xap 文件复制到网站上的文件夹中。例如,如果安装了 Internet 信息服务,则可以将 .xap 文件复制到默认站点中的虚拟目录(通常映射到 C:\Inetpub\wwwroot)。
Build and test (F5) your Silverlight project. When you build and test a Silverlight project, the following files are created in the \bin\debug folder, and Expression Blend tries to open the starting web page.
ProjectName.xap
A compressed archive that includes all the content and resources for the Silverlight application described above. Users download this file on their browsers and run it with the Silverlight plug-in.
Copy the ProjectName.xap file to a folder on a website. For example, if you have Internet Information Services installed, you could copy the .xap file to a virtual directory in the default site that is typically mapped to C:\Inetpub\wwwroot.