DLeh
DLeh

Reputation: 24405

Local NuGet package source not showing package

I'm stumped. I've followed the directions to set up a local NuGet Package Source as closely as I could, but my package refuses to show up in the NuGet Package manager. The screenshot below shows:

  1. I've created the NuGet package
  2. I put the package in C:\Packages
  3. I created a package source Local that points to C:\Packages
  4. In the Package Manager, I've selected Local as the package source

But it cannot find the package. What am I missing?

enter image description here

Here's my .nuspec for reference, with the assembly name removed.

<?xml version="1.0"?>
<package >
  <metadata>
    <id>$AssemblyName%$</id>
    <version>1.2.0-beta2</version>
    <title>$AssemblyName$</title>
    <description>Orders Messages</description>
    <language>en-US</language>
  </metadata>
    <files>
      <file src="bin\Debug\$AssemblyName$.dll" target="lib\net40" />
    </files>
</package>

Upvotes: 10

Views: 3785

Answers (1)

Matt Ward
Matt Ward

Reputation: 47987

Your NuGet package is a pre-release based on the version since the version in your .nuspec is:

1.2.0-beta2

So you need to check the Include prerelease check box before your NuGet package will appear in the NuGet Package Manager. Without this checked only stable versions will be displayed.

Upvotes: 12

Related Questions