自动构建期间缺少参考文件. [英] Missing reference file during automated build.

查看:103
本文介绍了自动构建期间缺少参考文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个csharp项目,其中包含对另一个dll的引用,这是构建过程的一部分.该项目文件为vs2002格式. HintPath当前正在使用相对路径来查找所需文件的位置.此位置在构建计算机上不存在,而仅在开发人员计算机上.
我该怎么做才能使项目在构建过程中位于正确的位置?我尝试设置LibPath,将变量添加到HintPath($(BIN_DIR)\ filename.dll).但是这些都不起作用.我可以构建的唯一方法是使用绝对路径更新项目文件或在IDE中打开项目,然后手动将新位置添加到引用路径".有什么方法可以从命令行更新它,或将新条目添加到项目文件中吗?在vs2008中,我可以添加AdditionalReferencePath使其正常工作.我一直都遇到这些类型的问题,并且真的很想找到解决此问题的好方法.



Anthony

I have a csharp project that includes a reference to another dll that is part of the build process. The project file is in vs2002 format. The HintPath is currently using a relative path for the location of the required file. This location does not exist on the build machine, and only on the developers machine.
   What can I do to get the project to look in the correct location during the build? I have tried setting LibPath, adding a variable to the HintPath ($(BIN_DIR)\filename.dll). But none of these work. The only way I can get it to build is to update the project file with an absolute path or open the project in the IDE and manually add a new location to the References Path. Is there any way to update this from command line, or add a new entry to the project file?  In in vs2008 I can add AdditionalReferencePath to get this to work.

   Any help on this would be great. I run into these types of problems all of the time and would really like to find a good way to fix this.



Anthony

推荐答案



你好安东尼



Hello Anthony

感谢您的发帖!我建议您将问题发布到 MSDN > 论坛主页 > Visual Studio > <字体颜色=#0072bc > Visual Studio设置和安装 位于此处: http://social.msdn.microsoft.com/Forums/zh-CN/vssetup/threads/


这篇关于自动构建期间缺少参考文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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