0

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.

Davide
  • 131
  • 5
  • 18

2 Answers2

1

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.

Chris Biggs
  • 246
  • 2
  • 4
0

Some weeks ago I just created my server following the same Microsoft official Guide and I had no issues using Nuget Package Explorer...

The difference with you is that I have created (and pushed) my package using another approach (automatically with CakeBuild)...

Could you please provide us more details about:

  • your Private Nuget Server
  • the Nuget version you used to publish your packages
  • the Nuget Package Explorer version you are using
Luca Ritossa
  • 1,118
  • 11
  • 22
  • Belove some informations: - My Private Server is an ASP.Net web application deployed on IIS 7.5 (I've downloaded it from nuget [link](https://www.nuget.org/packages/NuGet.Server/2.11.3/)) - Nuget Package Explorer version 3.21.0.0 - Nuget private Server version 2.11.3 N:B: I had to do a version upgrade of private Nuget Server, from 1.8.0 because I found an existing installation compromised, I could create and make the push for new packages but I could not see the feed. So existing packs were created with this version. Now I not able to push and create packages but I can see the feed – Davide Feb 06 '17 at 08:36
  • 1
    I correct myself: I can see feed but only from browser or from Visual Studio Nuget Package Manager. I can't see my feed from Nuget Package Explorer. – Davide Feb 06 '17 at 08:49
  • Ok Davide, now I can see that you are using a different version of Nuget Server of mine (but don't know if this is the cause). I'm using the older v2.10.3 (targetted for .NET 4.5) because my web server hasn't .NET framework 4.6 installed and can't install it so fast. I'm pretty sure the 'Published' property IS NOT set inside the nuget package... it is a property coming from server or nuget package explorer... – Luca Ritossa Feb 06 '17 at 12:36
  • Ok Luca thank for your support. If I find a solution I will write it. For now I have resolved pushing packages by command line. – Davide Feb 07 '17 at 10:34
  • 1
    Ok! So, if you didn't touch your server and only used another publishing approach then the issue seems related to Nuget Package Manager... You can try to open an issue on its github project. – Luca Ritossa Feb 08 '17 at 05:56