Visual Studio应用程序部署 - 运行可执行文件时,命令提示符保持打开状态 [英] Visual Studio Application Deployment - Command Prompt stays open when running an executable

查看:96
本文介绍了Visual Studio应用程序部署 - 运行可执行文件时,命令提示符保持打开状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Avalonia(基于WPF和XAML)和.Net Core开发一个简单的Hello World UI。目的是将应用程序部署到Windows和Linux操作系统。


我使用.Net Core 2.2框架同时使用了Self-Contained和Framework Dependent部署。当我为Windows运行时部署它时会发生此问题。运行可执行文件时,打开命令提示符运行它,这很好。问题是
命令提示符保持打开状态,并且必须保持打开状态才能使应用程序保持运行(UI保持不变)。


对于用户来说,这不是理想的用户。应用程序,如果他们想要运行应用程序,则始终打开命令提示符。 有没有办法允许在没有命令提示符打开的情况下运行可执行文件?


如果有是我需要提供的任何其他信息,请告诉我。

解决方案

由于Avalona仍然处于测试阶段,我会在GitHub项目



https:// github。 COM / AvaloniaUI /阿瓦隆尼亚/问题


I am developing a simple Hello World UI using Avalonia (WPF and XAML based) and .Net Core. The purpose is to deploy the app to both Windows and Linux OS.

I've used both Self-Contained and Framework Dependent deployment using .Net Core 2.2 framework. The problem occurs when I deploy it for Windows runtime. When the executable is run, command prompt is opened to run it, which is fine. The problem is that the command prompt stays open and must remain open for the application to stay running (UI to stay up).

It isn't ideal for the user of the application to have the command prompt open at all times if they want to run the app. Is there any way to allow the executable to be run without command prompt opening?

If there is any additional information I need to provide please let me know.

解决方案

Since Avalona is still in beta I would open an issue on the GitHub project

https://github.com/AvaloniaUI/Avalonia/issues


这篇关于Visual Studio应用程序部署 - 运行可执行文件时,命令提示符保持打开状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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