When & How to use ILMerge with Visual Studio Project / Solution

后端 未结 1 489
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 09:52

I\'m developing a medium sized enterprise application. There are many projects / solutions to this. For example:

  • Company.Data
    • Company.Data.LinqToSql
1条回答
  •  星月不相逢
    2021-02-06 10:53

    The question ILMerge Best Practices has good info on why.

    When I use ILMerge, I use it to build a single DLL, to simplify deployment.

    As to How, I define a separate, custom VS project, "Converged.csproj" if you like. In that .csproj file I define a custom Compile target. It is boilerplate code, that performs an ILMerge on all the referenced assemblies for the project.

    It looks like this:

    
      
      
      
      
      
        
      
      
      
      
      
      
      
      
    
      
    
      
    
      
      
      
    
    

    0 讨论(0)
提交回复
热议问题