How Do I?

[How Do I:] Use the aspnet_merge.exe Utility to Merge Assemblies

By Chris Pels|28 minutes|
In this video Chris Pels will show how to use the aspnet_merge.exe utility to combine assemblies that have been compiled using the aspnet_compiler.exe utility. First, view the output of the ASP.NET compilation process to learn what assemblies are created. Next, learn the mechanics of using the aspnet_merge.exe utility to merge assemblies from the compilation of a web site, first seeing how to control the compiled assembly names with the –prefix option. Then see how to merge all the assemblies for a compiled web site into a single assembly. Lastly, learn how to merge just the assemblies related to the content (aspx, ascs, etc.) into a single assembly, leaving the top level assemblies such as app_code.dll representing the /App_Code folder. During each option the advantages and disadvantages of that option are discussed.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on June 26, 2008

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England