无法调试 - 错误无法写入输出文件 [英] Unable to debug - error could not write to output file

查看:76
本文介绍了无法调试 - 错误无法写入输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

希望有人可以提供帮助,我将项目文件夹移动到另一个驱动器,然后在调试时收到错误。

Hoping someone can help, i moved my project folder to a different drive and since then receive an error when debugging.

错误状态:无法写入输出文件'g:\ AppFolder \NewApp \obj \Debug \NewApp.exe' - 系统无法找到指定的文件。 

Error States: Could not write to output file 'g:\AppFolder\NewApp\obj\Debug\NewApp.exe' -- The system cannot find the file specified. 

我已检查文件夹位置,并且.exe​​肯定存在。在VS中的错误列表中,名为"文件列表"的列列出了CSC。在线查看时,它表明csproj文件中缺少某些内容。这是对的。我试图看到什么是错过,但
没有这样的运气。有点困惑为什么会发生这种情况。 

I have checked the folder location and the .exe definitely exists. On the Error List in VS a column named File lists CSC. When looking online it states that something is missing from the csproj file. This is correct. I have tried to see whats missings but had no such luck. Am a bit stuck why this is happening. 

提前致谢

推荐答案

G驱动器映射驱动器?当你说你移动了你的项目文件夹时我假设你移动了整个解决方案目录吗?您为项目设置的输出目录是什么?您是否在正确构建的解决方案中有其他项目?可以
你删除obj目录并重建并重新创建吗?
Is the G drive a mapped drive? When you say you moved your project folder I assume you moved the entire solution directory right? What is your output directory set to for the project? Do you have other projects in the solution that builds properly? Can you delete the obj directory and rebuild and does it get created again?


这篇关于无法调试 - 错误无法写入输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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