How to reference shared assemblies that are still under development (.NET)

隐身守侯 提交于 2019-12-03 22:17:11

You don't necessarily need to install the assemblies into the GAC - nothing in your setup requires this.

The main issue here is making sure that an assembly forces all of its dependencies to be rebuilt, and that all of these are placed in a shared location.

The easiest option here would probably be to have a build server that rebuilds everything whenever one of the shared assemblies is updated. This also has the advantage of potentially running other "scripts" on the build, such as doing code metrics, static code analysis, etc, whenever a build is checked in.

You can then just have the build server copy everything up to a shared location. If the projects reference from the shared location, and explicitly say not to restrict to a specific version, everything should just work fine.

NuGet has solved this problem. By distributing the shared assemblies, frameworks, etc as NuGet packages from a private repository on our network, we can easily post updates and have them applied to client code as appropriate.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!