Visual Studio 包构建和私有 bin 路径中的 DLL
我正在使用 MEF 来做一种粗略的插件架构。这运作良好。但是,当我使用 Visual Studio 包/发布构建任务(我通过 NAnt/MSbuild 调用)进行部署时。我未引用的插件程序集未包含在包中,因此未部署。
有没有办法告诉 VS/MSBuild 包含这些 DLL?
他们住在 /bin/Extensions 中。
干杯, 抢
I am using MEF to do a sort of crude plugin architecture. This is working well. However, when I do a deployment using the visual studio package/publish build tasks (which I am calling via NAnt/MSbuild). My unreferenced plugin assemblies are not being included in the package and so are not deployed.
Is there a way to tell VS/MSBuild to include these DLLs?
They live in /bin/Extensions.
Cheers,
Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
构建
通过执行上述操作,程序集仍然物理地位于您最初拥有它们的位置(我假设是引用文件夹),并且当您构建时,它们被复制到垃圾箱文件夹。
By doing the above the assemblies are still physically where you had them originally (I assume a references folder) and when you build those are copied to the bin folder.
我在这篇博文中找到了答案。它工作完美: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageInducingExtraFilesOrExducingSpecificFiles.aspx 基本上这
是我添加到项目文件中的代码。
I have found the answer in this blog post. It works perfectly: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx
Basically here's the code I added to my project file.
在此处查看此答案以了解一种方法: Team Build 2010 - 第三方程序集引用未复制到输出文件夹
Check out this answer here for one approach: Team Build 2010 - Third Party Assembly References not copying to output folder