且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

DLL引用不复制到项目仓

更新时间:2023-11-27 16:53:28

该选项我发现是到:


  • 添加在项目A到PostSharp参考

  • 添加虚拟代码在项目b,这样编译器将检测正在使用的参考。

  • 添加生成事件迫使复制DLL。

我不喜欢任何上述解决方案。他们是在我看来,黑客和只会使在长远来看更难以维护的解决方案。

I don't like any of the above solutions. They are hacks in my opinion and will only make for a more unmaintainable solution in the long run.

我以一个常见的​​输出目录解决了这一问题。这似乎是许多人建议的解决方案。我也遇到过更快的构建时间。请参见这个岗位#1

I have fixed the problem by using a common output directory. This seems to be a recommended solution by many. I have also experienced much faster build times. See this *** post.