[英]WPF application will not close if Visual Studio is installed
I develop a WPF application that closes by calling Application.Current.Shutdown. 我开发了一个WPF应用程序,该应用程序通过调用Application.Current.Shutdown关闭。 When installed on a 'normal' machine, and the app is closed all the windows close and the process exits just fine.
当安装在“正常”机器上时,该应用程序关闭,所有窗口均关闭,并且该过程退出即可。 But, when installed on a machine with Visual Studio, the windows close on shutdown but the process never exits.
但是,当安装在装有Visual Studio的计算机上时,Windows在关闭时会关闭,但该过程永远不会退出。
How might one go about tracking down why the process is not exiting? 如何追踪为什么该进程没有退出呢?
I believe this may help, microsoft application shutdown. 我相信这可能会有所帮助, Microsoft应用程序关闭。
Do you have the XAML also containing the shutdown like on here? 您是否还有XAML也包含此处的关机信息?
Read the 4th paragraph down in the 'remarks' section. 阅读“备注”部分中的第4段。
此问题通过Visual Studio的新更新得以解决,并且没有任何代码更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.