【发布时间】:2019-03-11 14:52:38
【问题描述】:
我正在尝试设置AppxManifest.xml 来启动 Win32 应用程序作为完全信任的应用程序。使用下面的 sn-p,我可以 Add-AppxPackage -Register AppxManifest.xml 然后使用 Debug > Other Debugging Tools > Debug Installed Application 在 Visual Studio 2017 中调试应用程序。
但是,我想在启动应用程序时将一些参数传递给应用程序。我怎样才能做到这一点?我不介意在AppxManifest.xml 中列出它们,如果这是最简单的,我只需要知道如何。
...
<Applications>
<Application Id="App" Executable="SomeExecutable.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="Wrap" Description="Wrap" BackgroundColor="transparent" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
</uap:VisualElements>
</Application>
</Applications>
...
【问题讨论】:
标签: windows visual-studio uwp appxmanifest