引用在打开解决方案时复制copy local = true。 [英] References With copy local = true are copied when solution is opened.

查看:225
本文介绍了引用在打开解决方案时复制copy local = true。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿!
$


在我的解决方案中,我有一些Web项目,其中包含对copy local = true的其他项目的引用。当我打开我的解决方案或将其中一个Web项目加载到解决方案中时,所有具有copy local = true的程序集引用都将复制到Web项目
输出目录中。我希望这只会在我实际构建时发生。怎么办呢?



谢谢!

解决方案

< blockquote>

嗨JoWi85,


在我身边,我可以重复你的情况,它默认运行。在我这边我做了很多设置,但它没有用,除非我设置copy local = flase。在构建之前,然后设置copy local = true。


您的项目是否太大而不会影响打开解决方案的速度。如果没有,则没有必要禁用本地复制。如果是,我认为你需要为本地复制设置flase。


这是关于你的问题的类似问题,我建议你可以参考
Sayed Ibrahim Hashimi的回复,这可能会帮助你理解。 :)


http://stackoverflow.com/questions/602765/when-should-copy-local-be-set-to-true-and-when-should-it-not


此致,


奥斯卡

Hey!

In my solution I have some web projects that have references to other projects with copy local = true. When I open my solution or load one of those web projects into the solution then all assembly references with copy local = true are copied to the web projects output directory. I'd like that to only happen when I actually build. How can this be done?

Thank you!

解决方案

Hi JoWi85,

In my side I could repro your situation, it is run by default. And in my side I have done many settings, but it did not work, unless I set copy local = flase. And before build, then set copy local = true.

Whether your project is too large that could impact the speed of opening a solution. If not, there is no necessary to disable copy local. If yes, I think you need to set flase for copy local.

And here is a similar issue about your issue, I suggest you could refer to Sayed Ibrahim Hashimi’s reply, which maybe help you make sense. :)

http://stackoverflow.com/questions/602765/when-should-copy-local-be-set-to-true-and-when-should-it-not

Sincerely,

Oscar


这篇关于引用在打开解决方案时复制copy local = true。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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