nugetnuget-packagenuget-servernuget-specnugetgallery

Private Nuget Server: I can't see my packages from Nuget Package Explorer


I followed the Microsoft official Guide for create a Private Nuget Server. Everything seems to work, I can see my packages feed from browser and I can see my packages from Visual Studio package manager. However when I try to push, read or create new package from Nuget Package Explore as explained Here , It seems that the atom feed isn't getting started. I received the following error "The expected property 'Published' could not found while processing Atom results"

N.B. I've created this packages some time ago with a previous version of Nuget Package Explorer. Do you think I should re-create all packages with the new version? I hope not.


Solution

  • I was able to get the feed working again in Nuget Package Manager by updating the EntityPropertyMapping for "Published" to keepInContent: true in the ODataPackage.cs file. I'm using Nuget.Server v2.14.0.0.

    [EntityPropertyMapping("Published", SyndicationItemProperty.Published, SyndicationTextContentKind.Plaintext, keepInContent: true)]
    

    The Date published also shows now in the NuGet Package Manager in Visual Studio with this change.