.exe文件将无法从Debug文件夹中启动 [英] .exe file won't launch from the Debug folder
问题描述
大家好,
我在网上浏览了一下,但找不到正确的答案-由于我对C#汇编语言的了解有限,所以我求助于您!
我有一个WPF应用程序,直到今天我一直运行得很愉快.
当我在调试器中运行程序时,它将完美运行,当我从release文件夹中启动.exe时,我没有问题,但是当我从调试中打开它时,它会打开任务栏中的图标,但什么也不会显示. >
我尝试了清洁/重建/重建所有组合,但都无济于事.在今天之前,它在所有32/64位不同的操作系统上都可以正常工作,因此我知道我不会缺少任何程序集或框架.
有人遇到过这个问题吗?有人知道我可以尝试解决此问题的一些常见原因吗?
谢谢!!
Hi all,
I''ve had a look around the web but haven''t been able to find the right answer - and due to my limited C# assembly knowledge, I turn to you!
I have a WPF application that I have been running quite happily until today.
When I run the program in the debugger it will run perfectly, when I launch the .exe from the release folder I have no problem but when I open it from the debug it opens the icon in the taskbar but nothing will show.
I have tried cleaning/rebuild/rebuild all in every combination to no avail. Before today it worked fine on all Operating Systems of differing 32/64 bit, so I know I am not missing any assembly''s or frameworks.
Has anyone ever had this problem? Does anybody know some common reasons I can try to get around this?
Thanks!!
推荐答案
复制并尝试一些操作.
首先简单地说:
-在打开项目之前删除Bin和Obj目录,然后重新构建.
如果那没有帮助,请尝试:
-删除项目的特定用户设置(与解决方案位于同一文件夹中的.suo文件)
依然没有?试试这个:
-在Visual Studio中启动一个完整的新项目/解决方案,并将所有项目导入其中.
也许您可以尝试更多,但是这些是我现在可以想到的.
祝你好运!
Make a copy and try some things.
First simply:
- Delete the Bin and Obj directory before opening the project and then rebuild.
If that didn''t help, try:
- Delete the specific user settings for the project (.suo file in the same folder as the solution)
Still nothing? Try this:
- Start a complete new project/solution in visual studio and import all the projects into it.
Maybe there is more you can try but these are the things I could think of right now.
Good luck!
这篇关于.exe文件将无法从Debug文件夹中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!