链接:致命错误LNK1104:无法打开文件'D:\ ... \ MyProj.exe' [英] LINK : fatal error LNK1104: cannot open file 'D:\...\MyProj.exe'

查看:406
本文介绍了链接:致命错误LNK1104:无法打开文件'D:\ ... \ MyProj.exe'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2010,当我在短时间内构建+运行我的应用程序时,经常会遇到以下错误.如果我只等待一两分钟,然后重试,则效果很好. Unlocker 声称没有句柄正在锁定可执行文件.
如何发现对其进行了锁定的内容?
如果是Visual Studio本身,我应该怎么做才能使其停止?或释放文件?

Using Visual Studio 2010, when I build + run my application in short intervals I often get the following error. If I just wait a minute or two and try again it works fine. Unlocker claims no handle is locking the executable file.
How can I discover what's locking it?
If it's Visual Studio itself, what should I do to make it stop? or alternatively to release the file?

1>------ Build started: Project: MyProj, Configuration: Release Win32 ------
...
1>InitializeBuildStatus:
1>  Creating "Release\MyProj.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  All outputs are up-to-date.
1>  SomeFile1.cpp
1>ResourceCompile:
1>  All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\...\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.94
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

推荐答案

今天重新安装后出现此问题.确保已启动应用程序体验"服务,并且未将其设置为禁用".如果将其设置为手动,我相信VS会启动它.

Had this issue after a reinstall today. Make sure the Application Experience service is started and not set to disabled. If its set to manual, I believe VS will start it.

这篇关于链接:致命错误LNK1104:无法打开文件'D:\ ... \ MyProj.exe'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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