最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Visual Studio

运维笔记admin2浏览0评论

Visual Studio

Visual Studio

Visual Studio - 无法解析此引用(Visual Studio - could no resolve this reference)

我在笔记本电脑上的Visual Studio 2012中创建了一个ASP.NET MVC项目,在没有问题的情况下做了一些工作,然后将其检查到源代码管理中。 我已经在我的主桌面计算机上检查了它(一个完全新鲜的Git克隆),并且它不会编译声明缺少各种引用(其中一个是entityframework.dll)。 回顾我的笔记本电脑,那些DLL在我项目的“bin”文件夹中(出于显而易见的原因,我没有添加到源代码控制中)。 在我的笔记本电脑上,如果我重命名我的bin文件夹,那么我会得到相同的编译错误。 我不提交我的bin文件夹中的某些DLL文件是不正确的? 当然这些DLL应该在编译时复制到bin目录中吗?

I created an ASP.NET MVC project in Visual Studio 2012 on my laptop, did a bit of work on it without issues, then checked it into source control. I've checked it out on my main desktop machine (a completely fresh Git clone), and it won't compile stating that various references are missing (one of which being entityframework.dll). Looking back on my laptop, those DLLs are in my project's "bin" folder (which I didn't add to source control for obvious reasons). On my laptop, if I rename my bin folder, then I get the same compile errors. Am I incorrect in not committing certain DLL files that are in my bin folder? Surely those DLLs should be copied into the bin directory at compile time?

最满意答案

桌面可能找不到要复制的文件夹。

您应该使用NuGet添加引用(如果您还没有)并在源代码管理中包含packages文件夹。 (或启用包恢复)

The desktop probably can't find the folder to copy from.

You should add the references using NuGet (if you aren't already) and include the packages folder in source control. (or enable package restore)

发布评论

评论列表(0)

  1. 暂无评论