Skip to content

Visual Studio does not find a package with numeric pre-release suffix in a local feed; alphabetic suffix works #5654

Closed

Description

@alx9r

Details about Problem

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): Nuget.exe

NuGet version (x.x.x.xxx): 4.1.0.2450

dotnet.exe --version (if appropriate):

VS version (if appropriate): 14.0.25431.01 Update 3

OS version (i.e. win10 v1607 (14393.321)): Windows 8.1 (6.3.9600)

Worked before? If so, with which NuGet version:

Detailed repro steps

Folder Structure

c:
   temp
      alphabeticSuffix
         alphabeticSuffix.nuspec
         content
            nothing.txt
      numericSuffix
         numericSuffix.nuspec
         content
            nothing.txt
   packages
   feed

alphabeticSuffix.nuspec

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
    <metadata>
        <id>alphabeticSuffix</id>
        <version>0.1.0-abcdef</version>
        <title>alphabeticSuffix</title>
        <authors>author</authors>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>My package description.</description>
    </metadata>
</package>

numericSuffix.nuspec

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
    <metadata>
        <id>numericSuffix</id>
        <version>0.1.0-123456</version>
        <title>numericSuffix</title>
        <authors>author</authors>
        <requireLicenseAcceptance>false</requireLicenseAcceptance>
        <description>My package description.</description>
    </metadata>
</package>

Steps

  1. Create the folder structure, alphabeticSuffix.nuspec, and numericSuffix.nuspec.

  2. Invoke the following commands at the command line:

cd temp
nuget pack .\alphabeticSuffix\alphabeticSuffix.nuspec -OutputDirectory .\packages
nuget pack .\numericSuffix\numericSuffix.nuspec -OutputDirectory .\packages
nuget init .\packages .\feed
  1. Add the feed to Visual Studio.

image

  1. Inspect "Manage Nuget Packages for Solution" dialog box. Note that the "numericSuffix" package is missing.

image

Activity

  1. alx9r commented on Aug 3, 2017

    @alx9r
    Author

    That works. Thank you @emgarten.

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions