简体   繁体   English

Windows 应用程序在 Visual Studio 2019 中运行时工作,在我在本地构建和运行后工作,但是当提交到应用商店并下载时,它不运行

[英]Windows app works when run in Visual Studio 2019, works after I build and run locally, but when submitted to app store and downloaded, it doesn't run

I've built a small windows form app that opens a crm of choice to that customer account by running a command with the incoming phone number to the pbx that is connected to the app.我已经构建了一个小型 windows 表单应用程序,该应用程序通过向连接到该应用程序的 pbx 运行带有传入电话号码的命令来打开该客户帐户的 crm 选择。 It hangs out in the task bar and runs in the background.它挂在任务栏中并在后台运行。

This app runs beautifully in the IDE visual studio, and then once built and ran from the.exe it runs great too.这个应用程序在 IDE 视觉工作室中运行良好,然后从 .exe 构建并运行它也运行良好。 However, when submitting it to the Microsoft store and then downloading it, the app doesn't even open.但是,将其提交到 Microsoft 商店然后下载时,该应用程序甚至都无法打开。 The window doesn't pop up and close immediately even. window 甚至不会立即弹出和关闭。 There is no action at all.根本没有任何动作。

I'm confused because it has passed the tests from the store itself but still doesn't work.我很困惑,因为它已经通过了商店本身的测试,但仍然无法正常工作。 I've even tried submitting a practically empty app (removing much functionality) so that I could just see if the window would pop up when I run the app, but still nothing.我什至尝试提交一个几乎是空的应用程序(删除很多功能),这样我就可以查看在我运行应用程序时是否会弹出 window,但仍然没有。

I'm fairly new at playing around with these things, but I've spent so much time online in the past two weeks trying to figure out the problem I thought it would be worth asking the great group here.我在玩这些东西方面还很陌生,但是在过去的两周里,我在网上花了很多时间试图找出问题所在,我认为值得在这里向伟大的团队提问。

If you think you need some code, please ask.如果你认为你需要一些代码,请询问。 At this point, I don't even know what would be helpful to share.在这一点上,我什至不知道分享什么会有帮助。

Thanks!谢谢!

if you use .net framework you should insert the framework into the installation file.如果您使用 .net 框架,您应该将框架插入到安装文件中。 or if you use database you should check connection string and insert the database into the installation file and insert the local database( by database version )on the Customer system.或者如果您使用数据库,您应该检查连接字符串并将数据库插入安装文件并在客户系统上插入本地数据库(按数据库版本)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UWP 应用程序在 Visual Studio 调试模式下工作,但发布版本无法运行,缺少 DLL (C#) - UWP App works in Visual Studio debug mode, but the release build won't run, missing DLL (C#) Windows Phone 8.1应用程序共享图像-在连接了Visual Studio调试器的手机上可以正常工作,但是在没有调试器的情况下运行时会崩溃 - Windows Phone 8.1 app to share image - works fine on my phone with Visual Studio debugger attached, but crashes when run without the debugger ASP.Net Core应用程序可在Visual Studio中运行,但不能与dotnet运行 - ASP.Net Core app works in visual studio but not with dotnet run 仅当从Visual Studio中运行时,异常处理程序才起作用 - Exception Handler works only when run from within Visual Studio WCF 服务库仅在从 Visual Studio 运行时有效 - WCF Service Library only works when run from Visual Studio WinForms应用程序无法在Visual Studio外部运行 - WinForms App Doesn't Run Outside Visual Studio 基于MEF的应用程序在本地计算机上运行良好,但在从网络共享运行时不会导入AddIns - MEF-based app works great on local machine, but doesn't import AddIns when run from a network share 发布Web应用程序时,AfterPublish脚本无法运行 - AfterPublish script doesn't run when I publish a web app 控制台Web服务应用程序在编译时不起作用,但在Visual Studio中有效 - Console Web Service App Doesn't Work When Compiled, but works in Visual Studio UWP,我的应用程序在构建时崩溃,导致图像路径崩溃,但是当我在调试器上运行它时,它运行正常 - UWP, my app crashes for the image path when built , but when I run it on the debugger it works fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM