{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12608","repository_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore","labels_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12608/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12608/comments","events_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12608/events","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/12608","id":339524692,"node_id":"MDU6SXNzdWUzMzk1MjQ2OTI=","number":12608,"title":"dotnet ef dbcontext scaffold can't be run on .NETStandard class library projects","user":{"login":"MaximRouiller","id":209384,"node_id":"MDQ6VXNlcjIwOTM4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/209384?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximRouiller","html_url":"https://github.com/MaximRouiller","followers_url":"https://api.github.com/users/MaximRouiller/followers","following_url":"https://api.github.com/users/MaximRouiller/following{/other_user}","gists_url":"https://api.github.com/users/MaximRouiller/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximRouiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximRouiller/subscriptions","organizations_url":"https://api.github.com/users/MaximRouiller/orgs","repos_url":"https://api.github.com/users/MaximRouiller/repos","events_url":"https://api.github.com/users/MaximRouiller/events{/privacy}","received_events_url":"https://api.github.com/users/MaximRouiller/received_events","type":"User","site_admin":false},"labels":[{"id":600141869,"node_id":"MDU6TGFiZWw2MDAxNDE4Njk=","url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/labels/area-docs","name":"area-docs","color":"e99695","default":false},{"id":403964217,"node_id":"MDU6TGFiZWw0MDM5NjQyMTc=","url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/labels/closed-fixed","name":"closed-fixed","color":"777777","default":false},{"id":936619505,"node_id":"MDU6TGFiZWw5MzY2MTk1MDU=","url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/labels/customer-reported","name":"customer-reported","color":"a4a5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"bricelam","id":1226749,"node_id":"MDQ6VXNlcjEyMjY3NDk=","avatar_url":"https://avatars2.githubusercontent.com/u/1226749?v=4","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},"assignees":[{"login":"bricelam","id":1226749,"node_id":"MDQ6VXNlcjEyMjY3NDk=","avatar_url":"https://avatars2.githubusercontent.com/u/1226749?v=4","gravatar_id":"","url":"https://api.github.com/users/bricelam","html_url":"https://github.com/bricelam","followers_url":"https://api.github.com/users/bricelam/followers","following_url":"https://api.github.com/users/bricelam/following{/other_user}","gists_url":"https://api.github.com/users/bricelam/gists{/gist_id}","starred_url":"https://api.github.com/users/bricelam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricelam/subscriptions","organizations_url":"https://api.github.com/users/bricelam/orgs","repos_url":"https://api.github.com/users/bricelam/repos","events_url":"https://api.github.com/users/bricelam/events{/privacy}","received_events_url":"https://api.github.com/users/bricelam/received_events","type":"User","site_admin":false},{"login":"divega","id":1253414,"node_id":"MDQ6VXNlcjEyNTM0MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1253414?v=4","gravatar_id":"","url":"https://api.github.com/users/divega","html_url":"https://github.com/divega","followers_url":"https://api.github.com/users/divega/followers","following_url":"https://api.github.com/users/divega/following{/other_user}","gists_url":"https://api.github.com/users/divega/gists{/gist_id}","starred_url":"https://api.github.com/users/divega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divega/subscriptions","organizations_url":"https://api.github.com/users/divega/orgs","repos_url":"https://api.github.com/users/divega/repos","events_url":"https://api.github.com/users/divega/events{/privacy}","received_events_url":"https://api.github.com/users/divega/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/milestones/47","html_url":"https://github.com/aspnet/EntityFrameworkCore/milestone/47","labels_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/milestones/47/labels","id":3740595,"node_id":"MDk6TWlsZXN0b25lMzc0MDU5NQ==","number":47,"title":"2.2.0","description":"","creator":{"login":"ajcvickers","id":1430078,"node_id":"MDQ6VXNlcjE0MzAwNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/1430078?v=4","gravatar_id":"","url":"https://api.github.com/users/ajcvickers","html_url":"https://github.com/ajcvickers","followers_url":"https://api.github.com/users/ajcvickers/followers","following_url":"https://api.github.com/users/ajcvickers/following{/other_user}","gists_url":"https://api.github.com/users/ajcvickers/gists{/gist_id}","starred_url":"https://api.github.com/users/ajcvickers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajcvickers/subscriptions","organizations_url":"https://api.github.com/users/ajcvickers/orgs","repos_url":"https://api.github.com/users/ajcvickers/repos","events_url":"https://api.github.com/users/ajcvickers/events{/privacy}","received_events_url":"https://api.github.com/users/ajcvickers/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":48,"state":"open","created_at":"2018-10-15T17:48:39Z","updated_at":"2018-10-31T19:53:37Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2018-07-09T16:39:19Z","updated_at":"2018-11-02T21:15:32Z","closed_at":"2018-10-30T02:20:19Z","author_association":"NONE","body":"Running the following on a .NET Standard Class Library:\r\n\r\n```bash\r\ndotnet ef dbcontext scaffold <CONNECTION> Microsoft.EntityFrameworkCore.SQLServer\r\n```\r\nWill produce this error:\r\n\r\n>Startup project 'projectName' targets framework '.NETStandard'. There is no runtime associated with this framework, and projects targeting it cannot be executed directly. To use the Entity Framework Core Package Manager Console Tools with this project, add an executable project targeting .NET Framework or .NET Core that references this project, and set it as the startup project; or, update this project to cross-target .NET Framework or .NET Core.\r\n\r\nSimilar issues on StackOverflow:\r\n\r\n* [PowerShell](https://stackoverflow.com/questions/48673987/trying-to-set-up-entity-framework-core-in-net-standard-project)\r\n* [dotnet cli](https://stackoverflow.com/questions/49218173/ef-core-database-first-in-class-library-using-visual-studio-code)\r\n* [PowerShell again](https://stackoverflow.com/questions/48558951/issues-with-adding-entity-framework-to-net-standard-class-library)\r\n* [Another](https://stackoverflow.com/questions/44430963/is-ef-core-add-migration-supported-from-net-standard-library)\r\n\r\nNote: All those users are using the tools as expected. It used to work before Core if I remember correctly. \r\n\r\n### Steps to reproduce\r\n\r\nGet your command line to a directory with a project of type .NET Standard Class Library and run the following command,\r\n\r\n```bash\r\ndotnet ef dbcontext scaffold <CONNECTION> Microsoft.EntityFrameworkCore.SQLServer\r\n```\r\n\r\n### Further technical details\r\nEF Core version: 2.1.1\r\nDatabase Provider: Microsoft.EntityFrameworkCore.SqlServer\r\nOperating system: Windows 10\r\nIDE: CLI\r\n\r\ncsproj content:\r\n\r\n```xml\r\n<Project Sdk=\"Microsoft.NET.Sdk\">\r\n\r\n  <PropertyGroup>\r\n    <TargetFramework>netstandard2.0</TargetFramework>\r\n    <ApplicationIcon />\r\n    <StartupObject />\r\n  </PropertyGroup>\r\n\r\n  <ItemGroup>\r\n    <PackageReference Include=\"Microsoft.EntityFrameworkCore.Design\" Version=\"2.1.1\" />\r\n    <PackageReference Include=\"Microsoft.EntityFrameworkCore.SqlServer\" Version=\"2.1.1\" />\r\n    <PackageReference Include=\"NuGet.Protocol.Core.Types\" Version=\"4.2.0\" />\r\n    <PackageReference Include=\"NuGet.Protocol.Core.v3\" Version=\"4.2.0\" />\r\n    <PackageReference Include=\"Semver\" Version=\"2.0.4\" />\r\n  </ItemGroup>\r\n\r\n</Project>\r\n```\r\n// @spboyer for tracking"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/comments/435511394","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/12608#issuecomment-435511394","issue_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12608","id":435511394,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTUxMTM5NA==","user":{"login":"symbiogenesis","id":1724472,"node_id":"MDQ6VXNlcjE3MjQ0NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1724472?v=4","gravatar_id":"","url":"https://api.github.com/users/symbiogenesis","html_url":"https://github.com/symbiogenesis","followers_url":"https://api.github.com/users/symbiogenesis/followers","following_url":"https://api.github.com/users/symbiogenesis/following{/other_user}","gists_url":"https://api.github.com/users/symbiogenesis/gists{/gist_id}","starred_url":"https://api.github.com/users/symbiogenesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symbiogenesis/subscriptions","organizations_url":"https://api.github.com/users/symbiogenesis/orgs","repos_url":"https://api.github.com/users/symbiogenesis/repos","events_url":"https://api.github.com/users/symbiogenesis/events{/privacy}","received_events_url":"https://api.github.com/users/symbiogenesis/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T21:15:32Z","updated_at":"2018-11-02T21:15:32Z","author_association":"NONE","body":"Why couldn't the CLI automatically generate a true .NET Core (or Framework) project in a temp folder somewhere to circumvent this? "}}
{"actor":{"display_login":"symbiogenesis"}}