Static Linking of libraries created on C# .NET

后端 未结 5 1680
春和景丽
春和景丽 2020-12-01 02:26

I\'m using VS2008 C#.NET.

I created 3 different classes of libraries in 3 projects. I wrote an application which uses these libraries (dlls).

What is happeni

5条回答
  •  执念已碎
    2020-12-01 02:40

    ILMerge is what you're after.

    I'm not sure I'd really call this "static linking" - it's just merging several assemblies into one. (In particular, please don't get the impression that this is building a native, unmanaged executable.) However, I think it's what you're after :)

    Update: ILMerge is now open source and is also available as a NuGet package:

    Install-Package ilmerge 
    

提交回复
热议问题