{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4883","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4883/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4883/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4883/events","html_url":"https://github.com/dotnet/cli/issues/4883","id":192820381,"number":4883,"title":"Adding NETCore.Appv1.1 cli tool to NETCore.App v1.1 Console app doesn't restore.","user":{"login":"damtur","id":1122149,"avatar_url":"https://avatars.githubusercontent.com/u/1122149?v=3","gravatar_id":"","url":"https://api.github.com/users/damtur","html_url":"https://github.com/damtur","followers_url":"https://api.github.com/users/damtur/followers","following_url":"https://api.github.com/users/damtur/following{/other_user}","gists_url":"https://api.github.com/users/damtur/gists{/gist_id}","starred_url":"https://api.github.com/users/damtur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damtur/subscriptions","organizations_url":"https://api.github.com/users/damtur/orgs","repos_url":"https://api.github.com/users/damtur/repos","events_url":"https://api.github.com/users/damtur/events{/privacy}","received_events_url":"https://api.github.com/users/damtur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T11:28:51Z","updated_at":"2016-12-01T11:28:51Z","closed_at":null,"body":"## Steps to reproduce\r\n\r\nCreate console app dependent on NETCore.App v 1.1.\r\nPublish it to Nuget\r\nAdd that app in `tools` section in you NETCore.App v 1.1. console project.\r\nDo `dotnet restore` for your project\r\n\r\nproject.json for my DEPENDENT app:\r\n\r\n```\r\n{\r\n  \"name\": \"ToolsTest\",\r\n  \"version\": \"0.0.1-*\",\r\n  \"buildOptions\": {\r\n    \"debugType\": \"portable\",\r\n    \"emitEntryPoint\": true,\r\n    \"outputName\": \"dotnet-library\"\r\n  },\r\n  \"dependencies\": {\r\n  },\r\n  \"frameworks\": {\r\n    \"netcoreapp1.1\": {\r\n      \"dependencies\": {\r\n        \"Microsoft.NETCore.App\": {\r\n          \"type\": \"platform\",\r\n          \"version\": \"1.1.0\"\r\n        }\r\n      },\r\n      \"imports\": \"dnxcore50\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nproject.json for my ACTUAL app (where ther is problem)\r\n```\r\n{\r\n  \"name\": \"DotnetLibraryCli\",\r\n  \"version\": \"0.1.1-*\",\r\n  \"buildOptions\": {\r\n    \"debugType\": \"portable\",\r\n    \"emitEntryPoint\": true,\r\n    \"outputName\": \"dotnet-awesome\"\r\n  },\r\n  \"dependencies\": {\r\n\r\n  },\r\n  \"frameworks\": {\r\n    \"netcoreapp1.1\": {\r\n      \"dependencies\": {\r\n        \"Microsoft.NETCore.App\": {\r\n          \"type\": \"platform\",\r\n          \"version\": \"1.1.0\"\r\n        }\r\n      },\r\n      \"imports\": \"dnxcore50\"\r\n    }\r\n  },\r\n  \"tools\": {\r\n    \"ToolsTest\": \"0.0.1\" // <-- here the problem\r\n  }\r\n}\r\n```\r\n\r\nNOTE: I don't have NETCoreApp v1.0 anywhere there and I don't know why it's expecting it to be compatible with just that library.\r\nAlso if I include that app (`ToolsTest`) in dependencies and not tools it resteres just fine.\r\n\r\n## Expected  behavior\r\n\r\n`dotnet restore` works just fine.\r\n\r\n## Actual behavior\r\n\r\nAfter `dotnet restore`:\r\n```\r\nErrors in C:\\Users\\damian.turczynski\\Documents\\hudl\\git\\marvel-tools\\dotnet-library\\cli\\src\\Hudl.Marvel.Tools.DotnetLibraryCli\\project.json\r\n    Package ToolsTest 0.0.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package ToolsTest 0.0.1 supports: netcoreapp1.1 (.NETCoreApp,Version=v1.1)\r\n    One or more packages are incompatible with .NETCoreApp,Version=v1.0.\r\n```\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\n.NET Command Line Tools (1.0.0-preview2-1-003177)\r\n\r\nProduct Information:\r\n Version:            1.0.0-preview2-1-003177\r\n Commit SHA-1 hash:  a2df9c2576\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.14393\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"damtur"}}