Mil*_*oDC 5 silverlight f# out-of-browser elevated-privileges
目前,我正在使用Daniel Mohl的"F#Web应用程序(Silverlight)"扩展来完全使用F#(Visual Studio 2010)创建Silverlight应用程序.
我需要做本地文件I/O(这显然需要提升信任度),我也想在浏览器外运行应用程序,但我无法以正常方式设置它(例如正如我在Daniel Mohl的"F#C#Web App(Silverlight)"扩展中所做的那样,因为全F#配置中的项目设置不提供必要的设置.
我可以通过在文本编辑器中对项目文件进行一些简单的修改来设置它,还是涉及更多步骤?
您需要将 OutOfBrowserSettings.xml 文件添加到您的项目中:
<OutOfBrowserSettings ShortName="App" ShowInstallMenuItem="True">
<OutOfBrowserSettings.Blurb>App blurb</OutOfBrowserSettings.Blurb>
<OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="App Title" />
</OutOfBrowserSettings.WindowSettings>
<OutOfBrowserSettings.Icons />
</OutOfBrowserSettings>
Run Code Online (Sandbox Code Playgroud)
然后将以下标签添加到 PropertyGroup 下的 .fsproj 文件中:
<EnableOutOfBrowser>true</EnableOutOfBrowser>
<OutOfBrowserSettingsFile>OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
Run Code Online (Sandbox Code Playgroud)