桌面扩展程序不适用于Microsoft商店应用程序 [英] Desktop Extension is not working on microsoft store app

查看:133
本文介绍了桌面扩展程序不适用于Microsoft商店应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个徽章打印项目(SelfCheckIn),我们在其中使用了两个项目。第一个是UWP项目,第二个是 桌面扩展(PrintSilently.exe)用于打印目的。现在我有两个项目,我已经为
创建了一个包,在Microsoft商店上传这两个项目,并按照此链接创建包 -   https://stefanwick.com/2018/04/06/uwp- with-desktop-extension-part-1 /。



所以我在同一个解决方案中创建了一个新项目(SelfCheckInPackage)并引用了两个项目并设置为条目指向SelfCheckIn。请参阅下面链接的屏幕截图-https://social.msdn.microsoft.com/Forums/getfile/1442827。



现在,当我通过侧载软件包测试我的应用程序时,所有功能都正常工作。但是,当我发布Microsoft商店的应用程序时,应用程序无法正常工作。  PrintSilently.exe
没有给出打印件。
 



有人可以请告诉我我错过了什么?



谢谢 



Nikhilesh

解决方案

Hello Nikhilesh ,


您在SelfCheckInPackage中将扩展名放在哪里?您的意思是
您的包,uwp项目和扩展项目是在同一个解决方案中还是在两个解决方案中?您是否尝试将您的exe包含在您的包中并将其设置为内容文件?你是如何从你的UWP代码中调用PrintSilently.exe的?


祝你好运,


Barry


Hi,

I have a Badges Printing project(SelfCheckIn) in which we have used two projects. First one is UWP project and second one is  desktop extension(PrintSilently.exe) for the printing purpose. Now I have two projects and I have create a single package for uploading this two on Microsoft store and following this link for creating the package - https://stefanwick.com/2018/04/06/uwp-with-desktop-extension-part-1/ .

So I have created a new project(SelfCheckInPackage) inside same solution and referenced the both project and set as entry point to SelfCheckIn. Please see the screenshot on below link-https://social.msdn.microsoft.com/Forums/getfile/1442827.

Now, When I test my application through the sideloading the package, the all functionality working fine. But the application is not working correctly when I have publish the app for the Microsoft store. PrintSilently.exe is not giving the prints. 

Can someone please tell me what I have missing?

Thanks 

Nikhilesh

解决方案

Hello Nikhilesh,

Where did you put your extension, in the SelfCheckInPackage? Do you mean your package, uwp project and extension project are in the same solution or in two solutions? Also have you tried to include your exe in your package and set them as content file? How did you call your PrintSilently.exe from your UWP code?

Best regards,

Barry


这篇关于桌面扩展程序不适用于Microsoft商店应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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