由于缺少文件,Visual Studio 2010 生成错误 [英] Visual Studio 2010 error building, due to missing files

查看:24
本文介绍了由于缺少文件,Visual Studio 2010 生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到处搜索,似乎找不到任何有同样问题的人(尽管我确信人们过去犯过同样的错误)......我不小心删除了我的调试和发布的内容文件夹.现在我收到找不到文件的错误.作为背景,它是 C# 中的 Windows 窗体应用程序,我正在运行 Visual Studio 10.

I've searched everywhere and I can't seem to find anyone with the same problem (although I'm sure people have made the same mistake in the past)...I accidentally deleted the contents of my Debug and Release folders. Now I am getting file not found errors. As a background, it's a Windows Forms Application in C#, and I'm running Visual Studio 10.

错误如下:

Unable to read manifest 'bin\Debug\projectName.vshost.exe.manifest' 
Could not find file [pathName]\projectName.vshost.exe.manifest.

在我丢失清单之前,我收到一个错误,它找不到文件夹的其他内容(exe、pdb 等),错误 MSB3113 (link)

Before I was missing the manifest, I was getting an error that it could not find the other contents of the folder (the exe, the pdb, etc.), error MSB3113 (link)

我尝试过的事情(我知道其中一些很牵强):

Things I've tried (and some of them were far-fetched, I know):

  • 我尝试为所有丢失的文件重命名虚假文件
  • 我试图找到已删除的文件,但找不到
  • 我尝试删除 Debug/Release 文件夹的所有内容并进行干净构建
  • 我尝试删除调试/发布目录

如果您能想到我可以尝试的任何内容,请告诉我.我的问题似乎与这个有点相似.

Let me know if you can think of anything I could try out. My issue seems to be vaguely similar to this one.

推荐答案

这是我最终解决问题的方法 - 结果我将我的 binobj 目录包含在我的项目.对于遇到相同问题的任何人,只需右键单击并从项目中排除".完成此操作后,清理并重建您的项目,您应该就可以开始了.

Here's how I ended up solving the problem - turns out I included my bin and obj directories in my project. For anyone experiencing the same problem, simply right click and "Exclude From Project." After doing this, clean and rebuild your project, and you should be good to go.

这篇关于由于缺少文件,Visual Studio 2010 生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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