I have an ASP.NET web application developed in Visual Studio 2008, composed of 3 different projects (one for UI, one of BO and the third for DAL).
How can I generate a single assembly file which holds all 3? Now it's generating 3 DLLS each for each project in the solution.
I do not know if there's indeed this feature in VS2008. But you certainly can do it outside VS.
E.g.:
Merging .NET assemblies using ILMerge
Check out the ASP.NET Merge Tool (Aspnet_merge.exe)
For each of your projects create a netmodule or an assembly and compile/merge them all into a single assembly.
First alternative. This was proposed by Jay R. Wren:
Second way. This great article (by Scott Hanselman) describes how to megre assemblies automatically if you're using Visual Studio. It does give you IntelliSense support
, unlike the first alternative.Third way. Do it manually with scs.
Example how to create several modules and link theme into a single dll:
For more information see Richter's book CLR via C#.