只是一个平淡乏味的DLL,而不是作为一个.Net项目创建的,它需要某种版本控制。是否可以使用Nuget工具为此创建一个Nuget包?
发布于 2017-03-02 12:25:00
您可以将任何文件作为内容添加到nuget包中。它将被复制到项目输出中。
您可以在这里查看:https://learn.microsoft.com/en-us/nuget/schema/nuspec#including-content-files
示例nuspec:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>PackageId</id>
<version>1.0.0</version>
<authors>Example</authors>
<owners>Example</owners>
<dependencies>
</dependencies>
<contentFiles>
<files include="any/any/yourdllfolder/**/*" buildAction="None" copyToOutput="true" />
</contentFiles>
</metadata>
</package>https://stackoverflow.com/questions/42555239
复制相似问题