Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

NuGet CLI throw error Unable to find .nupkg

$
0
0

I try to build a package using NuGet CLI. I run next command :

.\nuget.exe pack D:\projects\CloudStorage.Client.csproj -OutputDirectory D:\packages -Build -Symbols -Properties Configuration=Release;

But always get next error:

Error NU5012: Unable to find 'Autofac.4.9.4.nupkg'. Make sure the project has been built.

But the solution is built.

I'm using the latest version of NuGet (v5.2.0)

In bin/Release folder Autofac is present or I don't understand correctly of the difference between missed '.nupkg' and present assemblies?

enter image description here

Also for the mentioned project, there are present CloudStorage.Client.nuspec file


This issue was detected when I updated one nuget package(https://www.nuget.org/packages/Z.EntityFramework.Extensions/) in solution that requires now SemVer 2.0.0 package... In order to build it, I upgrade Nuget to 4.3.0+ version. The result is above.


Project nuspec content:

<?xml version="1.0"?>
    <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
       <metadata>
           <id>CloudStorage.Client</id>
           <version>$version$</version>
           <description>CloudStorage Client</description>
           <authors>MyTeam</authors>
           <tags>$branch$</tags>
       </metadata>
    </package>

UPD

I've created test project, where include Autofac 4.9.4 and try to build pack for it. It was successfully created. From console I see that for Autofac was copied all 3 files to bin folder .pdb, .dll and .xml files... while in my "problem" project only .dll is copied.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>