{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/3768","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/3768/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/3768/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/3768/events","html_url":"https://github.com/NuGet/Home/issues/3768","id":185215934,"number":3768,"title":"Restore of \"runtimes\" section should only apply to the current project","user":{"login":"jgoshi","id":19478941,"avatar_url":"https://avatars.githubusercontent.com/u/19478941?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoshi","html_url":"https://github.com/jgoshi","followers_url":"https://api.github.com/users/jgoshi/followers","following_url":"https://api.github.com/users/jgoshi/following{/other_user}","gists_url":"https://api.github.com/users/jgoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoshi/subscriptions","organizations_url":"https://api.github.com/users/jgoshi/orgs","repos_url":"https://api.github.com/users/jgoshi/repos","events_url":"https://api.github.com/users/jgoshi/events{/privacy}","received_events_url":"https://api.github.com/users/jgoshi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Area:%20Restore","name":"Area: Restore","color":"f7c6c7"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Bug","name":"Type:Bug","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"assignees":[{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/45","html_url":"https://github.com/NuGet/Home/milestones/4.0%20RC","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/45/labels","id":2023251,"number":45,"title":"4.0 RC","description":"","creator":{"login":"rrelyea","id":8865080,"avatar_url":"https://avatars.githubusercontent.com/u/8865080?v=3","gravatar_id":"","url":"https://api.github.com/users/rrelyea","html_url":"https://github.com/rrelyea","followers_url":"https://api.github.com/users/rrelyea/followers","following_url":"https://api.github.com/users/rrelyea/following{/other_user}","gists_url":"https://api.github.com/users/rrelyea/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelyea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelyea/subscriptions","organizations_url":"https://api.github.com/users/rrelyea/orgs","repos_url":"https://api.github.com/users/rrelyea/repos","events_url":"https://api.github.com/users/rrelyea/events{/privacy}","received_events_url":"https://api.github.com/users/rrelyea/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":72,"state":"open","created_at":"2016-09-22T23:53:10Z","updated_at":"2016-10-25T21:32:21Z","due_on":"2016-11-07T00:00:00Z","closed_at":null},"comments":7,"created_at":"2016-10-25T19:49:03Z","updated_at":"2016-10-25T22:03:23Z","closed_at":null,"body":"NuGet product used: dotnet.exe\r\nNuGet version (x.x.x.xxx):\r\ndotnet.exe --version: 1.0.0-preview3-003892\r\nOS version: Windows Server 2012 R2\r\n\r\nIn the project.json world, the runtimes section would only apply to the current project and not and P2P projects. For csproj files it looks like it tries to do this for all projects.\r\n\r\nRepro steps (in the dotnet cli repo)\r\n1. Go to tools\\Archiver\r\n2. Run dotnet restore\r\n3. Success\r\n4. Go to src\\Microsoft.Dotnet.Archive (which is a dependent project for tools\\Archiver)\r\n5. Add the \"runtimes\" section to the project.json file\r\n6. dotnet restore fails\r\n\r\nThe above implies that dotnet restore only applies the runtimes section to the current project.\r\n\r\nIf we try the same thing in the csproj world.\r\n1. Go to tools\\Archiver\r\n2. Run dotnet migrate\r\n3. Run dotnet restore3 .\\Archiver.csproj /p:RuntimeIdentifiers=win7-x64\r\n\r\nWe get a failure (and it appears to be because the runtime identifier is carried across P2P):\r\n\r\n\"C:\\cli\\tools\\Archiver\\Archiver.csproj\" (Restore target) (1) ->\r\n(Restore target) ->\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.AppContext 4.1.0 provides a co\r\nmpile-time reference assembly for System.AppContext on .NETStandard,Version=v1.3, but there is no run-time assembly comp\r\natible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Diagnostics.Tracing 4.1.0 prov\r\nides a compile-time reference assembly for System.Diagnostics.Tracing on .NETStandard,Version=v1.3, but there is no run-\r\ntime assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.IO 4.1.0 provides a compile-ti\r\nme reference assembly for System.IO on .NETStandard,Version=v1.3, but there is no run-time assembly compatible with win8\r\n1-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Linq 4.1.0 provides a compile-\r\ntime reference assembly for System.Linq on .NETStandard,Version=v1.3, but there is no run-time assembly compatible with\r\nwin81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Linq.Expressions 4.1.0 provide\r\ns a compile-time reference assembly for System.Linq.Expressions on .NETStandard,Version=v1.3, but there is no run-time a\r\nssembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Reflection 4.1.0 provides a co\r\nmpile-time reference assembly for System.Reflection on .NETStandard,Version=v1.3, but there is no run-time assembly comp\r\natible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Runtime 4.1.0 provides a compi\r\nle-time reference assembly for System.Runtime on .NETStandard,Version=v1.3, but there is no run-time assembly compatible\r\n with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Runtime.Extensions 4.1.0 provi\r\ndes a compile-time reference assembly for System.Runtime.Extensions on .NETStandard,Version=v1.3, but there is no run-ti\r\nme assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Runtime.InteropServices 4.1.0\r\nprovides a compile-time reference assembly for System.Runtime.InteropServices on .NETStandard,Version=v1.3, but there is\r\n no run-time assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Security.Cryptography.Algorith\r\nms 4.2.0 provides a compile-time reference assembly for System.Security.Cryptography.Algorithms on .NETStandard,Version=\r\nv1.3, but there is no run-time assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Security.Cryptography.X509Cert\r\nificates 4.1.0 provides a compile-time reference assembly for System.Security.Cryptography.X509Certificates on .NETStand\r\nard,Version=v1.3, but there is no run-time assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : System.Text.RegularExpressions 4.1.0\r\nprovides a compile-time reference assembly for System.Text.RegularExpressions on .NETStandard,Version=v1.3, but there is\r\n no run-time assembly compatible with win81-x64. [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n  C:\\cli\\.dotnet_stage0\\x64\\sdk\\1.0.0-preview3-003892\\NuGet.targets(70,5): error : One or more packages are incompatible\r\n with .NETStandard,Version=v1.3 (win81-x64). [C:\\cli\\tools\\Archiver\\Archiver.csproj]\r\n\r\n    0 Warning(s)\r\n    13 Error(s)"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/256190413","html_url":"https://github.com/NuGet/Home/issues/3768#issuecomment-256190413","issue_url":"https://api.github.com/repos/NuGet/Home/issues/3768","id":256190413,"user":{"login":"jgoshi","id":19478941,"avatar_url":"https://avatars.githubusercontent.com/u/19478941?v=3","gravatar_id":"","url":"https://api.github.com/users/jgoshi","html_url":"https://github.com/jgoshi","followers_url":"https://api.github.com/users/jgoshi/followers","following_url":"https://api.github.com/users/jgoshi/following{/other_user}","gists_url":"https://api.github.com/users/jgoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/jgoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgoshi/subscriptions","organizations_url":"https://api.github.com/users/jgoshi/orgs","repos_url":"https://api.github.com/users/jgoshi/repos","events_url":"https://api.github.com/users/jgoshi/events{/privacy}","received_events_url":"https://api.github.com/users/jgoshi/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T22:03:23Z","updated_at":"2016-10-25T22:03:23Z","body":"If we work around the issue, isn't this still a bug though? Passing through the command line is supposed to work right?"}}
{"actor":{"display_login":"jgoshi"}}