简体   繁体   English

如果安装了Visual Studio,WPF应用程序将不会关闭

[英]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.

相关问题 没有安装Visual Studio的应用程序崩溃 - Application crash without Visual Studio installed Visual Studio在构建过程中两次编译WPF应用程序 - Visual Studio compiles WPF application twice during build 迁移到 Visual Studio 2019 导致 WPF 应用程序崩溃 - Migration to Visual Studio 2019 causes crashes for a WPF application Visual Studio WPF设计器中的错误? - Bug in the Visual Studio WPF designer? 使用 Visual Studio 2013 进行 WPF 本地化 - WPF Localization with Visual Studio 2013 如何在visual studio控制台应用程序中禁用控制台窗口的关闭按钮? - how can i disable close button of console window in a visual studio console application? 可以在Visual Studio 2008中安装Visual Studio 2010包吗? - Can a Visual Studio 2010 Package be installed in Visual Studio 2008? WPF应用程序Sqlserver CE在后端。部署exe在Visual Studio 2012中存在问题 - WPF application Sqlserver CE in backend.Deploying exe is issue in visual studio 2012 在Visual Studio 11中从设计/ xaml窗口切换到代码文件以进行WPF应用程序 - Switch from design/xaml window to code file in visual studio 11 for WPF Application 没有安装某些程序包的Visual Studio 2017 - Visual Studio 2017 installed without some packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM