打包后把nuget包复制到指定的目录
<Target Name="CopyPackage" AfterTargets="Pack">
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="D:\OneDrive\Software\Tools\nuget-server\Packages" />
</Target>
<Target Name="CopyPackage" AfterTargets="Pack">
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="D:\OneDrive\Software\Tools\nuget-server\Packages" />
</Target>
转载于:https://www.cnblogs.com/oldli/p/9914811.html