如何使用运行时dll创建nuget包?

时间:2019-04-23 16:04:03

标签: .net visual-studio-2017 nuget-package

我有一个对LIB1.dll的引用。该库在运行时需要n个dll(LIB2.dll,LIB3.dll)。 我想要得到的是:将这些库放在nuget软件包中->安装软件包时,不必将它们添加到项目中,而必须将其移动到建筑输出文件夹中。

如果我放入lib文件夹而不是nuget,则将这些文件添加到我的项目中,我想避免这样做。如果我将这些文件放在ref文件夹中,则不会将它们添加到项目中,但在输出文件夹中却没有它们

<?xml version="1.0"?>
<package >
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>$description$</description>
    <releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
    <copyright>Copyright 2019</copyright>
  </metadata>
      <files>
        <file src="lib\**" target="ref\lib" />
      </files>
    </package>

0 个答案:

没有答案