当我将我的nuget包添加到带有包引用的项目时,它可以正常工作但是当我将它添加到带有packages.config文件的项目时,第三方dll'Moftware.Interop.program.dll'不会被复制到输出目录。
这是我的nuspec:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>$Id$</id>
<version>$Version$</version>
<title>$Title$</title>
<authors>$Authors$</authors>
<owners>MyCompany</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$Desc$</description>
<summary>$Summary$</summary>
<releaseNotes>$ReleaseNotes$</releaseNotes>
<copyright>Copyright © 2018</copyright>
<dependencies />
<contentFiles>
<files include="bin\Release\Software.Interop.program.dll"
buildAction="None"
copyToOutput="true"
flatten="true" />
</contentFiles>
</metadata>
<files>
<file src="bin\Release\Software.Interop.program.dll"
target="lib\net471" />
</files>
</package>