Having problems viewing FeedService.svc in Visual Studio 2015

Answered

I checked https://packages.nuget.org/v1/FeedService.svc/ and it works fine, but my own feed never pulls up anything, even though TeamCity reports that the nupkg is published. What am I missing? If I go to FeedService.svc/Packages it does show my nupkg. This worked with no issues in previous versions of TC. The build report below:

Created Packages

This build created 1 NuGet package.

Package Name Package Version
Jaffa.Common 1.0.4

Published to TeamCity NuGet feed

TeamCity detected and added 1 NuGet package to the feed.

Package Name Package Version
Jaffa.Common 1.0.4

 

9 comments
Comment actions Permalink
In LinqPad, http://packages.nuget.org/v1/feedservice.svc/ works fine and I am able to fetch packages. When I use my own though
 
---------------------------
LINQPad
---------------------------
 
 
 
 
MetadataException: Schema specified is not valid. Errors: 
 
(0,0) : error 0146: Return type is not valid in FunctionImport 'FindPackagesById'. The FunctionImport must return a collection of scalar values or a collection of entities.
 
(0,0) : error 0146: Return type is not valid in FunctionImport 'GetUpdates'. The FunctionImport must return a collection of scalar values or a collection of entities.
 
(0,0) : error 0146: Return type is not valid in FunctionImport 'Search'. The FunctionImport must return a collection of scalar values or a collection of entities.
---------------------------
OK   
---------------------------
0
Comment actions Permalink

Maybe the problem is that 9.1.5 uses V2FeedPackage. I notices packages.nuget.org uses V1Package.

$metadata looks like

<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0">
<edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0">
<Schema xmlns="http://schemas.microsoft.com/ado/2006/04/edm" Namespace="NuGetGallery">
<EntityType Name="V2FeedPackage" m:HasStream="true">
<Key>
<PropertyRef Name="Id"/>
<PropertyRef Name="Version"/>
</Key>
<Property Name="Description" Type="Edm.String" Nullable="true"/>
<Property Name="PackageHashAlgorithm" Type="Edm.String" Nullable="true"/>
<Property Name="RequireLicenseAcceptance" Type="Edm.Boolean" Nullable="true"/>
<Property Name="PackageHash" Type="Edm.String" Nullable="true"/>
<Property Name="Authors" Type="Edm.String" Nullable="true"/>
<Property Name="IsPrerelease" Type="Edm.Boolean" Nullable="true"/>
<Property Name="LicenseReportUrl" Type="Edm.String" Nullable="true"/>
<Property Name="AtomEntityType" Type="Edm.String" Nullable="true"/>
<Property Name="Created" Type="Edm.DateTime" Nullable="true"/>
<Property Name="LicenseUrl" Type="Edm.String" Nullable="true"/>
<Property Name="Copyright" Type="Edm.String" Nullable="true"/>
<Property Name="ProjectUrl" Type="Edm.String" Nullable="true"/>
<Property Name="IsLatestVersion" Type="Edm.Boolean" Nullable="true"/>
<Property Name="PackageSize" Type="Edm.Int64" Nullable="true"/>
<Property Name="Language" Type="Edm.String" Nullable="true"/>
<Property Name="Version" Type="Edm.String" Nullable="false"/>
<Property Name="LicenseNames" Type="Edm.String" Nullable="true"/>
<Property Name="VersionDownloadCount" Type="Edm.Int32" Nullable="true"/>
<Property Name="LastEdited" Type="Edm.DateTime" Nullable="true"/>
<Property Name="Dependencies" Type="Edm.String" Nullable="true"/>
<Property Name="LastUpdated" Type="Edm.DateTime" Nullable="true"/>
<Property Name="GalleryDetailsUrl" Type="Edm.String" Nullable="true"/>
<Property Name="Tags" Type="Edm.String" Nullable="true"/>
<Property Name="IsAbsoluteLatestVersion" Type="Edm.Boolean" Nullable="true"/>
<Property Name="Title" Type="Edm.String" Nullable="true"/>
<Property Name="NormalizedVersion" Type="Edm.String" Nullable="true"/>
<Property Name="ReleaseNotes" Type="Edm.String" Nullable="true"/>
<Property Name="IconUrl" Type="Edm.String" Nullable="true"/>
<Property Name="ReportAbuseUrl" Type="Edm.String" Nullable="true"/>
<Property Name="MinClientVersion" Type="Edm.String" Nullable="true"/>
<Property Name="Summary" Type="Edm.String" Nullable="true"/>
<Property Name="Published" Type="Edm.DateTime" Nullable="true"/>
<Property Name="Id" Type="Edm.String" Nullable="false"/>
<Property Name="DownloadCount" Type="Edm.Int32" Nullable="true"/>
</EntityType>
<EntityContainer Name="V2FeedContext" m:IsDefaultEntityContainer="true">
<EntitySet Name="Packages" EntityType="NuGetGallery.V2FeedPackage"/>
<FunctionImport Name="FindPackagesById" ReturnType="NuGetGallery.V2FeedPackage" EntitySet="Packages" m:HttpMethod="GET">
<Parameter Name="id" Type="Edm.String"/>
<Parameter Name="Id" Type="Edm.String"/>
</FunctionImport>
<FunctionImport Name="GetUpdates" ReturnType="NuGetGallery.V2FeedPackage" EntitySet="Packages" m:HttpMethod="GET">
<Parameter Name="packageIds" Type="Edm.String"/>
<Parameter Name="versions" Type="Edm.String"/>
<Parameter Name="includePrerelease" Type="Edm.Boolean"/>
<Parameter Name="includeAllVersions" Type="Edm.Boolean"/>
<Parameter Name="targetFrameworks" Type="Edm.String"/>
<Parameter Name="versionConstraints" Type="Edm.String"/>
</FunctionImport>
<FunctionImport Name="Search" ReturnType="NuGetGallery.V2FeedPackage" EntitySet="Packages" m:HttpMethod="GET">
<Parameter Name="searchTerm" Type="Edm.String"/>
<Parameter Name="targetFramework" Type="Edm.String"/>
<Parameter Name="includePrerelease" Type="Edm.Boolean"/>
</FunctionImport>
</EntityContainer>
</Schema>
0
Comment actions Permalink

I found something else interesting.

1. I cannot Browse
2. but two, when TeamCity has an update to a nupkg I manually installed (local folder), I can see it under Updates
3. however, it gets stuck when I try to upgrade at "Attempting to gather dependencies information for package 'Jaffa.Common.1.0.9' with respect to project 'jaffaTest', targeting '.NETFramework,Version=v4.5'"

0
Comment actions Permalink

Hello Tim,

Do you see the packages if you add TeamCity NuGet repository to the Visual Studio Package Manager? Use the command: Get-Package -ListAvailable [-Prerelease]. For more details see the blog post.

Did you contact LinqPad support?

0
Comment actions Permalink

Dear Alina, -ListAvailable from the Package Manager Console does work, however the packages do not show up in the VS2015 Browse window. Moving discussion and including images in youtrack.

https://youtrack.jetbrains.com/issue/TW-43972

0
Comment actions Permalink

Regarding LinqPad support, no, but the regular Feedservice.svc from packages.nuget.org works in LinqPad, so I didn't bother. Perhaps it is a V2Feed issue.

0
Comment actions Permalink

Hmm, seems that I cannot access that youtrack page any more, I get permission hub unavailable.

0
Comment actions Permalink

Sorry for the inconvenience. The Hub service is up and running now, please try to login to YouTrack.

Please continue in the issue tracker and provide the requested details.

0

Please sign in to leave a comment.