我怎样才能使 dll.config 成为 Nuget 包的一部分

Sta*_*ful 5 .net c# nuget nuget-spec

由于 .NET 不支持 dll.config,并且在创建 nuget 包时 dll.config 不是包的一部分。

有没有办法可以将 dll.config 作为 nuget 包的一部分?如果有人使用我的 nuget 包,他们应该在其放置位置获取 *.dll 和 *.dll.config 文件

如果可能的话希望得到一些建议。

pru*_*raj 1

已尝试上述要求并能够打包 dll 配置,请尝试如下您可以将 dll 配置文件与 dll 文件一起捆绑,只需使用文件标签即可

<file src="path\to\dllconfigfile\*.*" target="lib\net35" />

单击此处 --> 将文件包含在 nuget 包中