我正在整理我的WPF应用程序及其安装程序,并想知道是否有办法通过将DLL和关联的XML文件嵌入/捆绑到EXE来减少包含文件的数量?
我有参考文献的一些例子是:
"EntityFramework.dll"
"EntityFramework.SqlServer.dll"
"EntityFramework.SqlServer.xml"
"EntityFramework.xml"
"Quartz.dll"
"Quartz.xml"
"Google.Protobuf.dll"
"Google.Protobuf.xml"
"INIFileParser.dll"
"INIFileParser.xml"
"MySql.Data.dll"
"MySql.Data.xml"
"MySql.Data.Entity.EF6.dll"
"MySql.Data.Entity.EF6.xml"
"Newtonsoft.Json.dll"
"Newtonsoft.Json.xml"
除了减少目录中的文件数量以外,没有任何其他功能上的原因来捆绑它,这有点使清洁室ATM有点强迫症。
[如果您只想清理对程序集的引用,我会寻求https://github.com/Fody/Costura
如果您要寻找的不仅仅是装配体,请尝试https://github.com/dotnet/ILMerge