两种解决方案之间的参考共享 [英] Reference Sharing between two Solutions

查看:110
本文介绍了两种解决方案之间的参考共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我在一个解决方案中有10个项目.我的三个项目都使用相同的引用,即xyz.dll

我需要在我的输出可执行文件中组装引用,现在的问题是需要在每个输出文件中组装引用,这会造成时间浪费(我正在使用工具在o/p文件中组装引用),也增加了组装.

我不想在GAC中安装引用,因为它们会经常更新.谁能告诉我其他任何方法来组装引用的DLL,而无需在GAC中安装和在每个输出文件中组装所有DLL.



帮助将不胜感激!

Prathamesh

Hello,
I have my 10 projects in one solution. Three of my Projects are using Same References i.e xyz.dll

I need to Assemble References in my output Executable file(s), Now the problem is will need to Assemble references in Each Output File causing time wastage( i am using tool to Assemble references in o/p File), also Increasing Size of the Assembly.

I don''t want to Install references in GAC because they will be updated very Frequently. Can any one tell me any other way to assemble the Referneced DLLs without Installing in GAC and Assemblying All the DLLs in Each Output File.



Help will be Appreciated!!

Prathamesh

推荐答案

将您的参考文献放在一个普通的地方.然后将属性CopyToOutput设置为从不"(或如果较新").但是您需要确保将它们放置在PATH之类的路径中,否则将找不到它们.

您可以将依赖项嵌入到exe中.有多种方法,例如将它们视为资源并在运行时解包.
或者您可以使用此工具: CryptoObfuscator

关于构建后的步骤: http://geekswithblogs.net/dchestnutt/archive/2006/05/30/80113.aspx [ ^ ]
Put your references in a common place. Then set the property CopyToOutput to ''never'' (or ''if newer''). But you''ll need to be sure the path where you put them is in PATH or something, otherwise they will not be found.

You can embed your dependencies in the exe. There are ways, like treating them as resources and unpack at runtime.
Or you can use this tool: CryptoObfuscator

About post-build steps: http://geekswithblogs.net/dchestnutt/archive/2006/05/30/80113.aspx[^]


这篇关于两种解决方案之间的参考共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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