I've rolled my own nuget feed and implemented enough where it can list and download packages. (This is more for me figuring out the backend of nuget, I'm aware of Nuget.Server, I just want to play with integrating my own storage, etc.) However, I couldn't
get pushing to work even following the code from the nuget gallery, so I figured I'd trace the command line and see what it tries to do against the server. So I cloned the hg repo, and try to debug the CommandLine with args:
push SomePackage -Source test, where test is my nuget server running on vs dev web server (the service comes up and /Packages shows my packages).
When debugging I cannot get past line 58 of ZipPackage.cs. It is a call to EnsureManifest() but it immediately throws an exception without stepping into the method body:
Inheritance security rules violated while overriding member: 'NuGet.ManifestMetadata.Validate(System.ComponentModel.DataAnnotations.ValidationContext)'. Security accessibility of the overriding method must match the security accessibility of the method
Command line then quits with red error: The underlying connection was closed: An unexpected error occurred on a receive.
Given that it never even gets to the point where it tries to communicate with the server, I can't help but think there's something else going on. Anyone?