{"action":"closed","issue":{"url":"https://api.github.com/repos/Daniel15/simple-nuget-server/issues/33","repository_url":"https://api.github.com/repos/Daniel15/simple-nuget-server","labels_url":"https://api.github.com/repos/Daniel15/simple-nuget-server/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/Daniel15/simple-nuget-server/issues/33/comments","events_url":"https://api.github.com/repos/Daniel15/simple-nuget-server/issues/33/events","html_url":"https://github.com/Daniel15/simple-nuget-server/issues/33","id":362082689,"node_id":"MDU6SXNzdWUzNjIwODI2ODk=","number":33,"title":"Frameworks without dependencies are not saved to the database and don't appear with the NuGet client or Visual Studio","user":{"login":"dixong","id":19174831,"node_id":"MDQ6VXNlcjE5MTc0ODMx","avatar_url":"https://avatars2.githubusercontent.com/u/19174831?v=4","gravatar_id":"","url":"https://api.github.com/users/dixong","html_url":"https://github.com/dixong","followers_url":"https://api.github.com/users/dixong/followers","following_url":"https://api.github.com/users/dixong/following{/other_user}","gists_url":"https://api.github.com/users/dixong/gists{/gist_id}","starred_url":"https://api.github.com/users/dixong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixong/subscriptions","organizations_url":"https://api.github.com/users/dixong/orgs","repos_url":"https://api.github.com/users/dixong/repos","events_url":"https://api.github.com/users/dixong/events{/privacy}","received_events_url":"https://api.github.com/users/dixong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-20T08:51:06Z","updated_at":"2018-10-02T07:19:41Z","closed_at":"2018-10-02T07:19:41Z","author_association":"CONTRIBUTOR","body":"The NuGet server expects all targetFrameworks elements in the nuspec file to have a dependency element, this is not the case for some frameworks, e.g. .NETFramework4.6.1 and .NETStandard2.0.\r\n\r\n```xml<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<package xmlns=\"http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd\">\r\n  <metadata>\r\n    <id>Test Package Id</id>\r\n    <version>1.0.5</version>\r\n    <authors>Test Author</authors>\r\n    <owners>Test Owner</owners>\r\n    <requireLicenseAcceptance>false</requireLicenseAcceptance>\r\n    <description>Package Description</description>\r\n    <copyright>Copyright</copyright>\r\n    <dependencies>\r\n      <group targetFramework=\".NETFramework4.6.1\" />\r\n      <group targetFramework=\".NETStandard1.4\">\r\n        <dependency id=\"NETStandard.Library\" version=\"1.6.1\" exclude=\"Build,Analyzers\" />\r\n        <dependency id=\"System.Data.Common\" version=\"4.3.0\" exclude=\"Build,Analyzers\" />\r\n        <dependency id=\"System.Xml.XmlSerializer\" version=\"4.3.0\" exclude=\"Build,Analyzers\" />\r\n      </group>\r\n      <group targetFramework=\".NETStandard2.0\" />\r\n    </dependencies>\r\n    <frameworkAssemblies>\r\n      <frameworkAssembly assemblyName=\"System.Security\" targetFramework=\".NETFramework4.6.1\" />\r\n    </frameworkAssemblies>\r\n  </metadata>\r\n</package>\r\n```\r\nWhen viewed in Visual Studio 2017 I only see the .NETStandard1.4 framework shown in the dependencies listing, this means that when I install the package it loads as .NETStandard1.4 instead of .NETFramework4.6.1 or .NETStandard2.0.\r\n\r\nI see that when the package is pushed to the NuGet server the framework and dependencies are extracted from the nuspec file, however, if the framework doesn't have dependencies then that framework isn't saved as a dependency to the database.\r\n\r\nI have a fix for this and will create a PR.\r\n"}}
{"actor":{"display_login":"Daniel15"}}