{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/1520","repository_url":"https://api.github.com/repos/dotnet/roslyn-project-system","labels_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/1520/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/1520/comments","events_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/1520/events","html_url":"https://github.com/dotnet/roslyn-project-system/issues/1520","id":206651170,"number":1520,"title":"Nuget restore not happening when PackageTargetFallback is added","user":{"login":"jmarolf","id":9797472,"avatar_url":"https://avatars.githubusercontent.com/u/9797472?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarolf","html_url":"https://github.com/jmarolf","followers_url":"https://api.github.com/users/jmarolf/followers","following_url":"https://api.github.com/users/jmarolf/following{/other_user}","gists_url":"https://api.github.com/users/jmarolf/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarolf/subscriptions","organizations_url":"https://api.github.com/users/jmarolf/orgs","repos_url":"https://api.github.com/users/jmarolf/repos","events_url":"https://api.github.com/users/jmarolf/events{/privacy}","received_events_url":"https://api.github.com/users/jmarolf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-09T22:37:29Z","updated_at":"2017-02-13T05:41:35Z","closed_at":null,"body":"1. Create a new .NET Core console app\r\n2. Modify the project file to add PackageReference like below )\r\n```XML\r\n<ItemGroup>\r\n  <PackageReference Include=\"Microsoft.CodeAnalysis.Workspaces.Common\" Version=\"1.0.1\" />\r\n</ItemGroup>\r\n```\r\n*Note: this will cause many error like so:*\r\n\r\nSeverity | Description\t\r\n------------ | -------------\r\n| Error\t|\tPackage restore failed. Rolling back package changes for 'ConsoleApp4'. |\r\n| Error\t|\tPackage Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win. Package Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 supports: |\r\n| Error\t|\tPackage Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win-x86. Package Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 supports: |\r\n| Error\t|\tPackage Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win-x64. Package Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 supports: |\r\n| Error\t|\tPackage Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259) |\t\r\n| Error\t|\tPackage Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win-x64. Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259) |\t\r\n| Error\t|\tOne or more packages are incompatible with .NETCoreApp,Version=v1.0 (win-x86).\t |\r\n| Error\t|\tPackage Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win. Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)\t |\r\n| Error\t|\tPackage Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.CodeAnalysis.Workspaces.Common 1.0.1 supports: |\r\n| Error\t|\tOne or more packages are incompatible with .NETCoreApp,Version=v1.0 (win-x64).\t |\r\n| Error\t|\tOne or more packages are incompatible with .NETCoreApp,Version=v1.0 (win).\t |\r\n| Error\t|\tPackage Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / win-x86. Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)\t |\r\n| Error\t|\tOne or more packages are incompatible with .NETCoreApp,Version=v1.0. |\r\n\r\n3. add a `PackageTargetFallback` to the `PropertyGroup` and save the file\r\n```XML\r\n<PropertyGroup>\r\n  <OutputType>Exe</OutputType>\r\n  <TargetFramework>netcoreapp1.0</TargetFramework>\r\n  <PackageTargetFallback>portable-net45+win8</PackageTargetFallback>\r\n</PropertyGroup>\r\n```\r\n\r\nExpected: Project system runs nuget restore and errors go away\r\n\r\nActual:  If none of these packages are in the nuget cache, errors persist"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/comments/279298978","html_url":"https://github.com/dotnet/roslyn-project-system/issues/1520#issuecomment-279298978","issue_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/1520","id":279298978,"user":{"login":"davkean","id":1103906,"avatar_url":"https://avatars.githubusercontent.com/u/1103906?v=3","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T05:41:35Z","updated_at":"2017-02-13T05:41:35Z","body":"@jmarolf Do you have a more concrete repro?"}}
{"actor":{"display_login":"davkean"}}