在.csproj的存储项目的参考路径,而不是用户的文件? [英] Store project reference paths in .csproj, not user file?

查看:233
本文介绍了在.csproj的存储项目的参考路径,而不是用户的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我改变了一堆项目文件在我们的解决方案,以一个参考路径添加到他们。我没有意识到,参考路径存储在项目的。用户文件。是否有存储那些在.csproj的文件的方式,使他们能够签入源代码控制?

I altered a bunch of project files in our solution, to add a reference path to all of them. I didn't realize that Reference Paths are stored in the .user file for the project. Is there a way to store those in the .csproj file, so they can be checked into source control?

推荐答案

您可以尝试加入引用作为HintPath,像这样的:

You might try adding the reference as a HintPath, like this:

<Reference Include="MyReference, Version=2.0.3.2, Culture=neutral, processorArchitecture=MSIL">     
  <HintPath>..\..\lib\Whatever\MyReference.dll</HintPath>
</Reference>

这篇关于在.csproj的存储项目的参考路径,而不是用户的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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