visual-studio dll 文件或 .exe 文件丢失

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4244961/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:47:47  来源:igfitidea点击:

dll file or .exe file is missing

visual-studiocompiler-constructionexecutable

提问by Srivastava

I my desktop application, I had created a form and executed it, it was successfully executed but even after modifying the form the previous form was being used. For that I have deleted all the dll and .exe file created in the debug folder for the previous form. but now it is showing the following error...

我是我的桌面应用程序,我创建了一个表单并执行了它,它已成功执行,但即使在修改表单后,前一个表单仍在使用。为此,我删除了在调试文件夹中为前一个表单创建的所有 dll 和 .exe 文件。但现在它显示以下错误...

bin/debug .exe file is missing.

bin/debug .exe 文件丢失。

采纳答案by Ali Tarhini

you have to compile it again to regenerate the dlls

您必须再次编译它以重新生成 dll

回答by Cody Gray

First, make sure that you are in Debugmode, rather than Release mode:

首先,确保您处于调试模式,而不是发布模式:

  1. Select your project in the Solution Explorer.

  2. From the "View" menu, select "Property Pages."

  3. If you're using C# or F#, click the "Build" or "Debug" tab. If you're using VB.NET, click the "Compile" or "Debug" tab. If you're using C++, click the "Configuration Properties" tab.

  4. In the "Configuration" drop-down list, select "Debug."

    (If you have any trouble with this, check out the full how-to guideon MSDN.)

  1. 在解决方案资源管理器中选择您的项目。

  2. 从“查看”菜单中,选择“属性页”。

  3. 如果您使用的是 C# 或 F#,请单击“构建”或“调试”选项卡。如果您使用的是 VB.NET,请单击“编译”或“调试”选项卡。如果您使用的是 C++,请单击“配置属性”选项卡。

  4. 在“配置”下拉列表中,选择“调试”。

    (如果您对此有任何问题,请查看MSDN 上的完整操作指南。)

Then, clean and rebuild your solution:

然后,清理并重建您的解决方案:

  1. From the "Build" menu, select "Clean Solution."

  2. Again from the "Build" menu, select "Rebuild Solution."

  3. Finally, from the "Debug" menu, select "Start Debugging" (or press F5).

  1. 从“构建”菜单中,选择“清理解决方案”。

  2. 再次从“构建”菜单中,选择“重建解决方案”。

  3. 最后,从“调试”菜单中选择“开始调试”(或按F5)。

If that still doesn't work:

如果这仍然不起作用:

  • Open the form you edited in design-view (without running the application, as if you were going to make further changes to the form) and make sure that your changes were actually saved.

  • Make sure that your code is calling the correct (updated) form. Check the name of the form you're asking the application to show, and make sure it matches the form you want to display.

  • Make sure that you don't have two copies of the same form. You might have accidentally modified a second version, and your code is still showing the original version.

  • 打开您在设计视图中编辑的表单(不运行应用程序,就像您要对表单进行进一步更改一样)并确保您的更改已实际保存。

  • 确保您的代码正在调用正确(更新)的表单。检查您要求应用程序显示的表单的名称,并确保它与您要显示的表单匹配。

  • 确保您没有同一表格的两份副本。您可能不小心修改了第二个版本,而您的代码仍显示原始版本。

回答by Ioannis

I was getting that error and doing all of the solutions mentioned but it still wasn't working. I discovered that my anti-virus program was containing my .exe file so the program wasn't reaching it. After turning my anti-virus program off, it worked fine.

我遇到了那个错误并执行了所有提到的解决方案,但它仍然无法正常工作。我发现我的防病毒程序包含我的 .exe 文件,因此该程序无法访问它。关闭我的防病毒程序后,它运行良好。

回答by FLCL

Make sure you marked to build the project in configuration manager:

确保在配置管理器中标记为构建项目:

enter image description here

在此处输入图片说明