如何找出我的错误来自哪里? [英] How to find out where my error is coming from?

查看:40
本文介绍了如何找出我的错误来自哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个令人讨厌的错误,并且不知道它从哪里来.错误是:

I have an annoying error that's been popping up, and I don't know where it is coming from. The error is:

Error   31  Unable to copy file "app.config" to "bin\Debug\Framework.Tests.dll.config". Could not find file 'app.config'.   Framework.Tests

问题是,我在任何地方都没有bin \ Debug文件夹,也没有说它试图从哪里复制app.config.双击该错误不会使我进入尝试复制的任何代码,因此也无济于事.所以我不知道应该在哪里制作app.config.

The problem is, I don't have a bin\Debug folder anywhere, and it does not say from where it is trying to copy app.config. Double clicking on the error doesn't bring me to any code where it is trying to copy, so that doesn't help me either. So I don't know where I should make the app.config.

如何找到这个?

推荐答案

您已经添加了对名为 app.config 的文件的引用,或者Visual Studio为您完成了此操作.该文件在磁盘上不存在,大概是因为添加引用后您后来删除了该文件.

You have added a reference to a file called app.config or Visual Studio did this for you. The file does not exist on the disk, presumably because after adding the reference you later deleted the file.

在解决方案资源管理器中搜索丢失的文件,然后删除引用或创建文件.

Search for the missing file in your Solution Explorer, and either delete the reference or create the file.

它很可能在您的一个项目的根文件夹中,并且应该带有一个黄色三角形警告图标,表明该文件丢失.

It is most likely in the root folder of one of your projects, and should have a yellow triangle warning icon showing that the file is missing.

这篇关于如何找出我的错误来自哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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