Sergio
Sergio

Reputation: 1852

Nuget package with debug symbols successfully pushed but it is not available

  1. I successfully created both regular nuget package and nuget package with pdb files. Followe instructions from https://learn.microsoft.com/en-us/nuget/create-packages/symbol-packages
  2. With this command:
    nuget push myPackage-Beta.nupkg xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx -Source nuget.org -SymbolSource https://nuget.smbsrc.net -Verbosity detailed -Timeout 600
    nuget packages are successfully pushed to nuget.org and nuget.smbsrc.net. No warnings, no errors just info about successfull pushe to both servers.
  3. Now package is public and available for download on nuget.org, but that is not the case for nuget.smbsrc.net. Here, nuget package is not listed at all.I was checking with this command:
    nuget list -AllVersions -Prerelease -Source https://nuget.smbsrc.net
    I tried this command with package name as well with printing all packages in the txt file, and my package is not present
  4. Also I added https://nuget.smbsrc.net in VS in list of symbol locations but symbol package is not loaded

So, I am puzzled what is happening. What am I missing to do? I appriciate any help or suggetsion.

Upvotes: 1

Views: 626

Answers (1)

Leo Liu
Leo Liu

Reputation: 76910

With this command: nuget push myPackage-Beta.nupkg xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx -Source nuget.org -SymbolSource https://nuget.smbsrc.net -Verbosity detailed -Timeout 600

You should push the package "myPackage-Beta.nupkg" and "myPackage-Beta.symbols.nupkg" to nuget.org and https://nuget.smbsrc.net individually.

Detail steps:

  1. Push regular package to nuget.org:

    nuget push myPackage-Beta.nupkg xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx -Source nuget.org

  2. Push symbols package to https://nuget.smbsrc.net

    nuget push myPackage-Beta.symbols.nupkg -Source https://nuget.smbsrc.net

After those steps, we could list the version of symbols package:

nuget list PackageName -AllVersion -Prerelease -source https://nuget.smbsrc.net

enter image description here

Upvotes: 0

Related Questions