{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/416","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/416/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/416/events","html_url":"https://github.com/dotnet/sdk/issues/416","id":190866621,"number":416,"title":"The \"GetNearestTargetFramework\" task was not given a value for the required parameter \"ReferringTargetFramework\".","user":{"login":"weidazhao","id":3486339,"avatar_url":"https://avatars2.githubusercontent.com/u/3486339?v=3","gravatar_id":"","url":"https://api.github.com/users/weidazhao","html_url":"https://github.com/weidazhao","followers_url":"https://api.github.com/users/weidazhao/followers","following_url":"https://api.github.com/users/weidazhao/following{/other_user}","gists_url":"https://api.github.com/users/weidazhao/gists{/gist_id}","starred_url":"https://api.github.com/users/weidazhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weidazhao/subscriptions","organizations_url":"https://api.github.com/users/weidazhao/orgs","repos_url":"https://api.github.com/users/weidazhao/repos","events_url":"https://api.github.com/users/weidazhao/events{/privacy}","received_events_url":"https://api.github.com/users/weidazhao/received_events","type":"User","site_admin":false},"labels":[{"id":412731487,"url":"https://api.github.com/repos/dotnet/sdk/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"closed","locked":false,"assignee":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars0.githubusercontent.com/u/145043?v=3","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"assignees":[{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars0.githubusercontent.com/u/145043?v=3","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/sdk/milestones/2","html_url":"https://github.com/dotnet/sdk/milestone/2","labels_url":"https://api.github.com/repos/dotnet/sdk/milestones/2/labels","id":2010182,"number":2,"title":"1.0 RC2","description":"","creator":{"login":"srivatsn","id":20570,"avatar_url":"https://avatars0.githubusercontent.com/u/20570?v=3","gravatar_id":"","url":"https://api.github.com/users/srivatsn","html_url":"https://github.com/srivatsn","followers_url":"https://api.github.com/users/srivatsn/followers","following_url":"https://api.github.com/users/srivatsn/following{/other_user}","gists_url":"https://api.github.com/users/srivatsn/gists{/gist_id}","starred_url":"https://api.github.com/users/srivatsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srivatsn/subscriptions","organizations_url":"https://api.github.com/users/srivatsn/orgs","repos_url":"https://api.github.com/users/srivatsn/repos","events_url":"https://api.github.com/users/srivatsn/events{/privacy}","received_events_url":"https://api.github.com/users/srivatsn/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":24,"state":"closed","created_at":"2016-09-16T21:38:56Z","updated_at":"2016-12-15T01:43:35Z","due_on":null,"closed_at":"2016-12-15T01:43:35Z"},"comments":4,"created_at":"2016-11-21T23:32:34Z","updated_at":"2017-07-06T16:53:05Z","closed_at":"2016-11-23T02:24:26Z","body":"This is a scenario of Service Fabric application with an ASP.NET Core web service targeting .NET Framework.\r\n\r\nIn Visual Studio, Service Fabric Application project (similar to a Deployment project) adds project references to the service projects. With https://github.com/dotnet/sdk/pull/363, the SDK will check if referencing project and referenced project are compatible in terms of the target frameworks. However, Service Fabric Application project is not a managed code project, so it doesn't have any target framework moniker. In this case, the SDK reports an error on the referenced service project (ASP.NET Core on .NET FX)because of ReferringTargetFramework being empty.\r\n\r\nAs a tactical fix for RC.2, I suggest this:  If ReferringTargetFramework is empty, GetNearestTargetFramework returns the only TFM if the project only has one. Otherwise, it throws error. In this case, the semantic of ReferringTargetFramework being empty is that the referencing project can accept any TFM."},"comment":{"url":"https://api.github.com/repos/dotnet/sdk/issues/comments/313454931","html_url":"https://github.com/dotnet/sdk/issues/416#issuecomment-313454931","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/416","id":313454931,"user":{"login":"mani0070","id":9861392,"avatar_url":"https://avatars0.githubusercontent.com/u/9861392?v=3","gravatar_id":"","url":"https://api.github.com/users/mani0070","html_url":"https://github.com/mani0070","followers_url":"https://api.github.com/users/mani0070/followers","following_url":"https://api.github.com/users/mani0070/following{/other_user}","gists_url":"https://api.github.com/users/mani0070/gists{/gist_id}","starred_url":"https://api.github.com/users/mani0070/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mani0070/subscriptions","organizations_url":"https://api.github.com/users/mani0070/orgs","repos_url":"https://api.github.com/users/mani0070/repos","events_url":"https://api.github.com/users/mani0070/events{/privacy}","received_events_url":"https://api.github.com/users/mani0070/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T16:53:05Z","updated_at":"2017-07-06T16:53:05Z","body":"im getting same error\r\n\r\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\Sdks\\Microsoft.NET.Sdk\\build\\Microsoft.NET.Sdk.Common.targets(73, 5): error MSB4044: The \"GetNearestTargetFramework\" task was not given a value for the required parameter \"ReferringTargetFramework\".\r\n\r\n"}}
{"actor":{"display_login":"mani0070"}}