且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

桌面扩展程序不适用于Microsoft商店应用程序

更新时间:2022-10-24 20:19:54

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