我正在尝试设置一个AppxManifest.xml
启动 Win32 应用程序作为完全信任的应用程序。使用下面的代码片段,我可以在 Visual Studio 2017 中调试应用程序Add-AppxPackage -Register AppxManifest.xml
。Debug > Other Debugging Tools > Debug Installed Application
但是,我想在启动应用程序时将一些参数传递给它。我怎样才能做到这一点?我不介意在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>
...