错误-找不到路径的一部分 [英] Error- Could not find a part of the path

查看:95
本文介绍了错误-找不到路径的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在项目的模型文件夹中添加了一个类.我收到一条错误消息'找不到路径'C:\ Users \ my \ .dnx \ packages \ System.Net.NameResolution \ 4.0.0-beta-23409 \ ref \ dotnet \ System.Net.NameResolution的一部分.dll".在第1行,还有另一个错误 在第166行-设计时主机构建失败,并出现以下错误:找不到路径'C:\ Users \ my \ .dnx \ packages \ System.Net.NameResolution \ 4.0.0-beta-23409 \的一部分ref \ dotnet \ System.Net.NameResolution.dll'.

I added a class to the model folder of a project. I got an error message ' Could not find a part of the path 'C:\Users\my\.dnx\packages\System.Net.NameResolution\4.0.0-beta-23409\ref\dotnet\System.Net.NameResolution.dll'. at  Line 1, and another error at line 166 -The design time host build failed with the following error: Could not find a part of the path 'C:\Users\my\.dnx\packages\System.Net.NameResolution\4.0.0-beta-23409\ref\dotnet\System.Net.NameResolution.dll'.

然后将目录(System.Net)添加到我的项目引用中.第1行的错误已删除,但第166行的错误仍然存​​在.

 I then added a directory (System.Net) to my project references. The error at line 1 was removed but the error at line 166 remained.

对于我能做些什么来解决这个问题的任何见解,将不胜感激.

Any insights as to what else I could do to resolve this issue will be greatly appreciated.

此致

推荐答案

嗨Praise_Him,

Hi Praise_Him,

您运行了哪种类型的应用程序?

Which kind of app did you run?

您知道这个论坛是在讨论VS调试器工具,正如您所说的那样,如果此项目是构建/编译错误,那么我认为这将不是VS调试器工具的问题.我们会考虑项目代码本身或VS环境.

You know that this forum is to discuss the VS debugger tool, as you said that if this project as the build/compiled error, I think it would be not the VS debugger tool issue. We would think about the project code itself or the VS Environment.

(1)清洁并重建您的整个解决方案,然后再次运行它.结果如何?

(1) Clean and rebuild your whole solution, and then re-run it again. How about the result?

(2)也许您可以检查是否忘记安装某些NuGet软件包:

(2) Maybe you could check that whether you forget to install certain NuGet Package:

https://www.nuget.org/packages/System.Net.NameResolution/

(3)也请在其他VS机器上进行测试,以便我们知道它是否与VS Environment或其他环境有关.

(3) Please also test it in other VS machine, so we could know that whether it is related to the VS Environment or others.

但是,如果只是特定应用存在此问题,也许您可​​以告诉我真正的项目类型,我将帮助您找到一个更合适的开发论坛.

But if just the specific app has this issue, maybe you could tell me the real project type, I will help you find a more appropriate developing forum.

最好的问候,

Jack


这篇关于错误-找不到路径的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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