Scott Hanselman's ComputerZen.com - Mixing Languages in a Single Assembly in Visual Studio seamlessly with ILMerge and MSBuild
"...
What I really want is to be able to mark an assembly as merge-able and have it automatically merged in just because it's referenced.
Here's what I came up with. Thanks to Dan Moseley and Joshua Flanagan for their help. Thanks to Jomo Fisher for the Target File.
...
Looks like they are both in there. To refresh, if I want to merge in VB assemblies:
- Change the referencing CSPROJ to import "IlMerge.CSharp.targets"
- Add <IlMerge>True</IlMerge> to the references you want merged in.
- Save, Reload, Build
C# and VB, living together, mass hysteria!"
This is pretty cool.
I really dig the thought of just adding an project attribute to my assembly projects and having them automatically ILMerged during the build (much more so than ILMerging in post-build events).
Related Past Post XRef:
AsmZip - Compressing and Hiding Assemblies/DLL's in your .Net EXE
Gilma - GUI for ILMerge Branched for .Net 2.0
VS2005 Power Toys Pack Installer
MSBuild and ILMerge
"Gilma - GUI for ILMerge Application"
ILMerge Updated
The Code Project - Merging .NET assemblies using ILMerge - .NET
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...