Nuget软件包提供了我的DLL的旧版本

时间:2019-02-14 16:54:45

标签: nuget nuspec

我写了一个NuGet包,当我的其他项目使用它时,它们会得到我的DLL之一的旧版本。 我在我的NuGet项目中包含了最新版本的DLL作为参考。

Project1.nuspec:

<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
   <metadata>
       <id>CommonLibrary</id>
       <version>0.0.1</version>
       <authors>It's Me</authors>
       <owners>My Company/owners>
       <description>Shared Library for Common Code and Wrapper</description>
       <dependencies>
          <dependency id="NLog" version="4.5.7" />
       </dependencies>  
   </metadata>
   <files>
     <file src="CommonLibrary.dll" target="lib\net471" />
     <file src="HelperCode.dll" target="lib\net471" />
    </files>
 </package>

我的NuGet包中的CommonLibrary.dll(项目)提供了正确的最新DLL,但是HelperCode.dll始终是较旧的版本。

在我的项目中,我创建了一个名为“ binaries”的目录,该目录中是HelperCode.DLL的最新版本。我在项目中引用了最新版本。因此,NuGet软件包应提供最新版本。我给它设置了“始终复制本地”属性

任何建议将不胜感激。

0 个答案:

没有答案
相关问题