{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/3199","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/3199/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/3199/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/3199/events","html_url":"https://github.com/dotnet/cli/issues/3199","id":156249706,"number":3199,"title":"dotnet restore unable to resolve .NET Framework libraries (4.5.2, 4.6.2)","user":{"login":"timotyweis","id":4033864,"avatar_url":"https://avatars.githubusercontent.com/u/4033864?v=3","gravatar_id":"","url":"https://api.github.com/users/timotyweis","html_url":"https://github.com/timotyweis","followers_url":"https://api.github.com/users/timotyweis/followers","following_url":"https://api.github.com/users/timotyweis/following{/other_user}","gists_url":"https://api.github.com/users/timotyweis/gists{/gist_id}","starred_url":"https://api.github.com/users/timotyweis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotyweis/subscriptions","organizations_url":"https://api.github.com/users/timotyweis/orgs","repos_url":"https://api.github.com/users/timotyweis/repos","events_url":"https://api.github.com/users/timotyweis/events{/privacy}","received_events_url":"https://api.github.com/users/timotyweis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":40,"created_at":"2016-05-23T10:33:49Z","updated_at":"2016-10-28T09:28:43Z","closed_at":null,"body":"## Steps to reproduce\r\nIn Visual Studio 2015\r\n\r\n1. Create a new ASP.NET Core Web Application (.NET Framework)\r\n2. Add a regular Class Library to the solution\r\n3. Add a reference to the new class library (in my case .NET Framework 4.6.2) from the web app\r\n4. run `dotnet restore` from the command line\r\n\r\n## Expected  behavior\r\n`dotnet restore` completes without errors.\r\n\r\n## Actual behavior\r\nThe command terminates with the following error message:\r\n```\r\nErrors in C:\\Users\\xyz\\Documents\\Visual Studio 2015\\Projects\\WA-net\\src\\WebApplication1\\project.json\r\n    Unable to resolve 'ClassLibrary1' for '.NETFramework,Version=v4.5.2'.\r\n```\r\nIn Visual Studio I can restore the packages and compile the application without any problem.\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\n.NET Command Line Tools (1.0.0-preview1-002702)\r\n\r\nProduct Information:\r\n Version:     1.0.0-preview1-002702\r\n Commit Sha:  6cde21225e\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.10240\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/256876889","html_url":"https://github.com/dotnet/cli/issues/3199#issuecomment-256876889","issue_url":"https://api.github.com/repos/dotnet/cli/issues/3199","id":256876889,"user":{"login":"MichaelGiger","id":23117556,"avatar_url":"https://avatars.githubusercontent.com/u/23117556?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelGiger","html_url":"https://github.com/MichaelGiger","followers_url":"https://api.github.com/users/MichaelGiger/followers","following_url":"https://api.github.com/users/MichaelGiger/following{/other_user}","gists_url":"https://api.github.com/users/MichaelGiger/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelGiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelGiger/subscriptions","organizations_url":"https://api.github.com/users/MichaelGiger/orgs","repos_url":"https://api.github.com/users/MichaelGiger/repos","events_url":"https://api.github.com/users/MichaelGiger/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelGiger/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T09:28:43Z","updated_at":"2016-10-28T09:28:43Z","body":"I have the following 3 projects:\r\n1.\tClass Library (.Net Framework 4.5.2), called «CL1»\r\n2.\tASP.NET Core Web Application (.Net Framework), called «AspNetCoreNetFrameworkDemo», references «CL1»\r\n3.\tClass Library (.Net Core), called «AspNetCoreFrameworkDemoTest», for unit testing, references «AspNetCoreNetFrameworkDemo»\r\n\r\n![image](https://cloud.githubusercontent.com/assets/23117556/19801821/1da82638-9d01-11e6-9571-cf9850b73c53.png)\r\n![image](https://cloud.githubusercontent.com/assets/23117556/19801833/240bb738-9d01-11e6-8111-43a48ca60884.png)\r\n\r\nThe reference to «AspNetCoreNetFrameworkDemo» is shown in the test project, which in turn references «CL1».\r\n\r\nNuGet restore fails with the error: «Unable to resolve CL1  for .NETFramework,Version=v4.5.2»\r\n\r\nI use Nuget 3.4.4 how the following log shows:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/23117556/19801806/0f6e31a2-9d01-11e6-925b-9f0a30ddedff.png)\r\n\r\nThis is project.json (test project, «AspNetCoreFrameworkDemoTest»):\r\n![image](https://cloud.githubusercontent.com/assets/23117556/19801941/82a33eec-9d01-11e6-80de-d9f777a41553.png)\r\n\r\n\r\nIs there a solution or workaround for this issue?\r\nMichael"}}
{"actor":{"display_login":"MichaelGiger"}}