LS-部署到网站+ EnableOutOfBrowser [英] LS - Deploy to web + EnableOutOfBrowser

查看:79
本文介绍了LS-部署到网站+ EnableOutOfBrowser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道是否可以将lightswitch应用程序部署到Web服务器(IIS)并启用以下文章中针对Silverlight所述的浏览器外支持: .microsoft.com/en-us/library/dd833073(v = vs.95).aspx"target =" _blank> http://msdn.microsoft.com/en-us/library/dd833073(v = vs. 95).aspx
(太可怕了!)

I am wondering if it is possible to deploy a lightswitch application to a web server (IIS) and enabling the out of browser support as describred for silverlight in the following article: http://msdn.microsoft.com/en-us/library/dd833073(v=vs.95).aspx
(It would be awsome !)

我尝试通过添加以下内容来更新lightswitch客户端项目的csproj:

I tried by updating the csproj of the lightswitch client project by adding the following:

<EnableOutOfBrowser>True</EnableOutOfBrowser>
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>

然后是OutOfBrowserSettings.xml文件:

And then the OutOfBrowserSettings.xml file:

<OutOfBrowserSettings ShortName="ShortName" EnableGPUAcceleration="False" ShowInstallMenuItem="True">
  <OutOfBrowserSettings.Blurb>ApplicationName</OutOfBrowserSettings.Blurb>  
  <OutOfBrowserSettings.WindowSettings>    
    <WindowSettings Title="ApplicationName" Top="0" Left="0" WindowStartupLocation="Manual" />  
  </OutOfBrowserSettings.WindowSettings>  
  <OutOfBrowserSettings.SecuritySettings>    
    <SecuritySettings ElevatedPermissions="Required" />  
  </OutOfBrowserSettings.SecuritySettings>  
  <OutOfBrowserSettings.Icons />
</OutOfBrowserSettings>

我最终看到以下网页(先不显示在浏览器中):

I end up with the following web page (not showing the in browser first):

安装后,应用程序总是要求重新安装.

And once installed, the application always ask to re-install.

任何有lightswitch经验并且没有浏览器支持的人吗?

Anyone having experience with lightswitch and out of browser support ?

推荐答案

是的,这是可能的(这是发布LS应用程序的默认配置).

Yes this is possible (and is the default configuration for publishing LS apps).

在解决方案资源管理器中,双击属性".扳手(在LightSwithc项目下).选择应用程序类型".标签,然后选择桌面".通过发布向导发布应用程序后,它将被发布 作为浏览器外应用程序.

In the Solution Explorer double-click on the "Properties" wrench (right under your LightSwithc project).  Select the "Application Type" tab and select "Desktop".  When the application is published through the publish wizard, it will be published as an Out-of-browser application.

要使自动更新功能正常工作,您需要为XAP指定数字签名(可以在发布向导中完成).有关此主题的信息可以在这里找到 对XAP Silverlight进行数字签名

To get the auto-update functionality to work correctly you need to specify a digital signature for the XAP (this can be done in the publish wizard).  Info on this topic can be found here Digitally Signing a XAP Silverlight


这篇关于LS-部署到网站+ EnableOutOfBrowser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆