Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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[^]
 
Share this answer
 
v2
Comments
prathameshpitale 28-Jul-11 12:40pm    
ok, thats fine..
But i need to Embed the Referenced DLL in my Executable file (output Files from 3 Directories)..

Is there any way If i Register the References in GAC, they Should Automatically Updated to newer version..
Catalin Serafimescu 28-Jul-11 12:43pm    
What do you mean by 'Embed the Referenced DLL in my Executable file' ? You want to have only one file with everything ?
You can add a post-build step and re-register the dll's on GAC when they are rebuild.
prathameshpitale 29-Jul-11 0:20am    
Yes i want one File with Everything..
Can you please tell me more about Post-Build step?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900