vs 如何将dll打包到exe中

方法如下:首先需要安装NuGet 然后安装Fody.Costura 重新启动vs 编译项目即可 虽然根目录下还生成了dll但是你的程序已经可以脱离dll运行了,其实是将你的dll打入了exe中你可以看到exe的体积变大。

详细步骤参考:http://www.cnblogs.com/lonelyxmas/p/5568876.html(转自博客园)

安装包下载:https://www.nuget.org/packages/Fody/

 

配置文件说明(随时更新)

1、排除特定程序集

<Costura>
    <ExcludeAssemblies>
      程序集名字
    </ExcludeAssemblies>
  </Costura>

 

posted @ 2016-06-27 09:59  dongzhaosheng73  阅读(4704)  评论(0编辑  收藏  举报