将C#参考DLL捆绑到EXE吗?

问题描述 投票:0回答:1

我正在整理我的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有点强迫症。

c# wpf dll bundle
1个回答
0
投票

[如果您只想清理对程序集的引用,我会寻求https://github.com/Fody/Costura

如果您要寻找的不仅仅是装配体,请尝试https://github.com/dotnet/ILMerge

© www.soinside.com 2019 - 2024. All rights reserved.