1

I use ILMerge to merge all binaries in to one due to an MS Dynamics limitation.

It use to be a manual process specifying all the binaries to merge but I found this article to automatically find the dependencies for a project and merge them in to the assembly using the AfterBuild target - instructions here.

The downside here is that I need to edit the csproj file and add the <import> element in for every project I want to ILMerge. Is there a way I can do it for every project in a solution (preferably every project in a solution folder)?

4

1 回答 1

0

项目文件只是 XML。没有什么能阻止您创建自己的文件编辑器实用程序来搜索所需的 xml 元素并将其注入项目文件中。

于 2012-05-24T04:26:41.193 回答