{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/3742","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/3742/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/3742/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/3742/events","html_url":"https://github.com/dotnet/cli/issues/3742","id":163179223,"number":3742,"title":"Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 is not compatible with netcoreapp1.0","user":{"login":"rbeadie","id":14222301,"avatar_url":"https://avatars.githubusercontent.com/u/14222301?v=3","gravatar_id":"","url":"https://api.github.com/users/rbeadie","html_url":"https://github.com/rbeadie","followers_url":"https://api.github.com/users/rbeadie/followers","following_url":"https://api.github.com/users/rbeadie/following{/other_user}","gists_url":"https://api.github.com/users/rbeadie/gists{/gist_id}","starred_url":"https://api.github.com/users/rbeadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbeadie/subscriptions","organizations_url":"https://api.github.com/users/rbeadie/orgs","repos_url":"https://api.github.com/users/rbeadie/repos","events_url":"https://api.github.com/users/rbeadie/events{/privacy}","received_events_url":"https://api.github.com/users/rbeadie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-30T14:28:36Z","updated_at":"2016-06-30T18:10:52Z","closed_at":null,"body":"## Steps to reproduce\r\n### In Package Manger Console, run the following:\r\n```\r\ndotnet new\r\ndotnet restore\r\ninstall-package Microsoft.EntityFrameworkCore.Tools -Pre\r\ndotnet restore\r\n```\r\n## Expected  behavior\r\n```\r\nPM> dotnet restore\r\nlog  : Restoring packages for C:\\Users\\[...]\\project.json...\r\ninfo :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json\r\ninfo :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json\r\ninfo : Committing restore...\r\nlog  : Writing lock file to disk. Path: C:\\Users\\[...]\\project.lock.json\r\nlog  : C:\\Users\\[...]\\project.json\r\nlog  : Restore completed in 1415ms.\r\n\r\nNuGet Config files used:\r\n    C:\\Users\\[...]\\AppData\\Roaming\\NuGet\\NuGet.Config\r\n    C:\\ProgramData\\nuget\\Config\\Microsoft.VisualStudio.Offline.config\r\n\r\nFeeds used:\r\n    https://api.nuget.org/v3/index.json\r\n    C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\\r\n```\r\n## Actual behavior\r\n```\r\nlog  : Restoring packages for C:\\Users\\sp-install\\Documents\\Visual Studio 2015\\Projects\\dbproj\\project.json...\r\ninfo :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json\r\ninfo :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json\r\nwarn : Detected package downgrade: Microsoft.NETCore.App from 1.0.0 to 1.0.0-rc2-3002702 \r\nwarn :  dbproj (>= 1.0.0) -> Microsoft.EntityFrameworkCore.Tools (>= 1.0.0-preview2-final) -> Microsoft.NETCore.App (>= 1.0.0) \r\nwarn :  dbproj (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.0-rc2-3002702)\r\nerror: Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 supports:\r\nerror:   - net451 (.NETFramework,Version=v4.5.1)\r\nerror:   - netstandard1.6 (.NETStandard,Version=v1.6)\r\nerror: Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 supports:\r\nerror:   - net451 (.NETFramework,Version=v4.5.1)\r\nerror:   - netstandard1.6 (.NETStandard,Version=v1.6)\r\nerror: One or more packages are incompatible with .NETCoreApp,Version=v1.0.\r\ninfo : Committing restore...\r\nlog  : Lock file has not changed. Skipping lock file write. Path: C:\\Users\\[...]\\project.lock.json\r\nlog  : C:\\Users\\[...]\\project.json\r\nlog  : Restore failed in 1629ms.\r\ndotnet : \r\nAt line:1 char:1\r\n+ dotnet restore\r\n+ ~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:String) [], RemoteException\r\n    + FullyQualifiedErrorId : NativeCommandError\r\n \r\nErrors in C:\\Users\\[...]j\\project.json\r\n\r\n    Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.Cli.Utils 1.0.0-preview2-003121 supports:\r\n\r\n      - net451 (.NETFramework,Version=v4.5.1)\r\n      - netstandard1.6 (.NETStandard,Version=v1.6)\r\n    Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121 supports:\r\n      - net451 (.NETFramework,Version=v4.5.1)\r\n      - netstandard1.6 (.NETStandard,Version=v1.6)\r\n    One or more packages are incompatible with .NETCoreApp,Version=v1.0.\r\n```\r\n## Environment data\r\n`dotnet --info` output:\r\n```\r\nPM> dotnet --info\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:  6.3.9600\r\n OS Platform: Windows\r\n RID:         win81-x64\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/229742330","html_url":"https://github.com/dotnet/cli/issues/3742#issuecomment-229742330","issue_url":"https://api.github.com/repos/dotnet/cli/issues/3742","id":229742330,"user":{"login":"rbeadie","id":14222301,"avatar_url":"https://avatars.githubusercontent.com/u/14222301?v=3","gravatar_id":"","url":"https://api.github.com/users/rbeadie","html_url":"https://github.com/rbeadie","followers_url":"https://api.github.com/users/rbeadie/followers","following_url":"https://api.github.com/users/rbeadie/following{/other_user}","gists_url":"https://api.github.com/users/rbeadie/gists{/gist_id}","starred_url":"https://api.github.com/users/rbeadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbeadie/subscriptions","organizations_url":"https://api.github.com/users/rbeadie/orgs","repos_url":"https://api.github.com/users/rbeadie/repos","events_url":"https://api.github.com/users/rbeadie/events{/privacy}","received_events_url":"https://api.github.com/users/rbeadie/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T18:10:52Z","updated_at":"2016-06-30T18:10:52Z","body":"### Workaround/Correct Install\r\nRun the following in package manager console:\r\n```\r\ndotnet new\r\ndotnet restore\r\ninstall-package Microsoft.EntityFrameworkCore.Tools -Pre\r\ninstall-package Microsoft.EntityFrameworkCore.Tools.Core -Pre\r\ninstall-package Microsoft.EntityFrameworkCore.Tools.Cli -Pre\r\ndotnet restore\r\n```\r\nThen in the `tools` section of `project.json`, you will need to ensure that you import `net451`:\r\n```\r\n  \"tools\": {\r\n    \"Microsoft.EntityFrameworkCore.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"imports\": \"net451\"\r\n    }    \r\n  }\r\n```"}}
{"actor":{"display_login":"rbeadie"}}