确定如何找到 Visual Studio 项目中丢失的引用的最佳方法是什么?

发布于 2024-11-30 00:45:27 字数 324 浏览 7 评论 0原文

我正在使用 Visual Studio 2008,并且正在尝试获取一个不是我创建的项目来构建。

在该项目的references文件夹中,有四个带有感叹号图标的DLL,其Path属性为空。 .csproj 文件中的 指向输出目录,我认为该目录不是这些 DLL 的初始位置。

我相信我拥有相关 DLL 的最新副本(它们在几个相关项目中使用)。我可以将它们放在该项目的目录中,但我想确定它们的原始位置,这样我就不必修改项目和解决方案文件(其他远程位置的其他开发人员使用这些文件)。

我会询问最初的开发人员,但他们位于凌晨 1 点的时区,所以我想这里有人可以帮助我。

提前致谢。

I'm using Visual Studio 2008 and I'm trying to get a project that I didn't create to build.

In the references folder of this project there are four DLLs with the exclamation icon whose Path property is empty. The in the .csproj file points to an output directory which I don't think is the initial location of these DLLs.

I believe that I have the most recent copies of the DLLs in question (they are used in several related projects). I could place them in this project's directory but I want to determine their original location so I don't have to modify the project and solution files (which are used by other developers in other remote locations).

I would ask the original developers but they're located in a time zone where it's 1 a.m. so I though someone here could help me out.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

去了角落 2024-12-07 00:45:27

在文本编辑器中打开 .csproj 文件并找到缺少的引用。

如果条目是这样的:

<Reference Include="AssemblyName"/>

那么它位于该应用程序的默认文件夹中以及搜索路径上的某个位置。

如果条目是这样的:

<Reference Include="AssemblyName">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>Path\AssemblyName.dll</HintPath>
</Reference>

那么文件应该放在 Path 引用的文件夹中。

Open the .csproj file in a text editor an locate the missing references.

If the entry is like this:

<Reference Include="AssemblyName"/>

then it's located in the default folder for that application and somewhere on the search path.

If the entry is like this:

<Reference Include="AssemblyName">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>Path\AssemblyName.dll</HintPath>
</Reference>

Then the file should be put in the folder referred to by Path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文