Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    NuGet package has no symbols - No symbols in this package have been indexed.

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 6 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      ds_6782
      last edited by

      Command to build the NuGet package:

      "C:\Program Files\dotnet\dotnet.exe" pack Q:\MyPackage\src\MyPackage.csproj --configuration Release --no-build --no-restore --no-dependencies --property:SymbolPackageFormat=snupkg --output Q:\MyPackage\result\nuget
      

      Output:

      15:52:05 [DBG]   Successfully created package 'Q:\MyPackage\result\nuget\MyPackage.9.2.4.183.nupkg'.
      15:52:05 [DBG]   Successfully created package 'Q:\MyPackage\result\nuget\MyPackage.9.2.4.183.snupkg'.
      

      Command to push the package to ProGet

      15:52:05 [INF] > "C:\Program Files\dotnet\dotnet.exe" nuget push Q:\MyPackage\result\nuget\MyPackage.9.2.4.183.nupkg --source https://proget:8624/nuget/MyFeed/
      

      Output:

      15:52:05 [DBG] warn : No API Key was provided and no API Key could be found for 'https://proget:8624/nuget/MyFeed/'. To save an API Key for a source use the 'setApiKey' command.
      15:52:05 [DBG] Pushing MyPackage.9.2.4.183.nupkg to 'https://proget:8624/nuget/MyFeed/'...
      15:52:05 [DBG]   PUT https://proget:8624/nuget/MyFeed/
      15:52:06 [DBG]   Created https://proget:8624/nuget/MyFeed/ 189ms
      15:52:06 [DBG] Your package was pushed.
      

      Command to push the symbols of the package (snupkg )

      15:52:06 [INF] > "C:\Program Files\dotnet\dotnet.exe" nuget push Q:\MyPackage\result\nuget\MyPackage.9.2.4.183.snupkg --source https://proget:8624/nuget/MyFeed/
      

      ProGet shows No symbols in this package have been indexed. in the details of the package version under Symbols.
      The symbol server for the feed is configured and set to Standard (.snupkg format)

      I tried to change the order of the push commands => no change, still no symbols.
      I tried to re-index the feed => no change, still no symbols.

      ProGet shows no errors in the Diagnostic Center.

      What can I do to troubleshoot this issue?

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @ds_6782
        last edited by

        Hi @ds_6782 ,

        If you haven't already ,I would make sure to check out the docs here:
        https://docs.inedo.com/docs/proget/feeds/nuget/symbol-and-source-server

        The NuGet client will automatically push both packages when you issue the dotnet nuget push command. You do not need to push then separately.

        It looks like, for whatever reason ,your NuGet client isn't doing that? We don't see this problem very often - it "just works" - and I'm not really an expert at troubleshooting NuGet client configuration.

        But that's where I would start. It looks like the issue is on the client end, and somehow your clientis misconfigured to not push the source packages.

        Thanks,
        Steve

        1 Reply Last reply Reply Quote 0
        • D Offline
          ds_6782
          last edited by

          Hi Steve

          Thanks for your response.

          I've read the documentation and for the client part I followed the Microsoft documentation:
          https://learn.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg

          After some testing, I've found the problem:
          I had to add /v3/index.json to the URL. Now the package and the symbols are pushed to the server.
          The ProGet UI shows the correct URL under API endpoint URL:. I'm not sure why my build script was using the URL without v3. Maybe it was different in an older version of ProGet or I just made a mistake somewhere?

          Interesting is that pushing "worked" when using the URL without v3 and v2 API disabled for the feed.
          Maybe the client NuGet client contains some logic to only push the snupkg file when it detects a v3 source?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation