{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12457","repository_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore","labels_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12457/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12457/comments","events_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12457/events","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/12457","id":335122695,"node_id":"MDU6SXNzdWUzMzUxMjI2OTU=","number":12457,"title":"Migrations on class library projects","user":{"login":"Trojaner25","id":1809172,"node_id":"MDQ6VXNlcjE4MDkxNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1809172?v=4","gravatar_id":"","url":"https://api.github.com/users/Trojaner25","html_url":"https://github.com/Trojaner25","followers_url":"https://api.github.com/users/Trojaner25/followers","following_url":"https://api.github.com/users/Trojaner25/following{/other_user}","gists_url":"https://api.github.com/users/Trojaner25/gists{/gist_id}","starred_url":"https://api.github.com/users/Trojaner25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trojaner25/subscriptions","organizations_url":"https://api.github.com/users/Trojaner25/orgs","repos_url":"https://api.github.com/users/Trojaner25/repos","events_url":"https://api.github.com/users/Trojaner25/events{/privacy}","received_events_url":"https://api.github.com/users/Trojaner25/received_events","type":"User","site_admin":false},"labels":[{"id":403965595,"node_id":"MDU6TGFiZWw0MDM5NjU1OTU=","url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/labels/closed-question","name":"closed-question","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":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-23T18:50:46Z","updated_at":"2018-06-28T05:57:38Z","closed_at":"2018-06-28T00:10:55Z","author_association":"NONE","body":"Hello!\r\nWe're developing a plugin framework for .NET game servers, which utilizes EntityFrameworkCore for database abstractions. We want to add migrations for our plugins, which are just normal  .NET Standard class libraries.\r\n\r\nAt the moment it is not possible to generate such migrations:\r\n**Command:** Add-Migration Initial -Project ExamplePlugin\r\n**Output:**\r\n> Startup project 'ExamplePlugin' 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\nA workaround is to create a dummy .exe project, like this:\r\nhttps://github.com/RocketMod/Rocket.EntityFrameworkCore/blob/master/ExamplePluginMigrator/Program.cs\r\n\r\nHowever, it is very inconvenient to create such migrators for every plugin project. ~~Also you can only generate these migrations inside the migrator exe project, not in the dll plugin project, which prevents migrating programmatically.~~\r\n\r\nAre there any plans on supporting migrations for class libraries in the future?"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/comments/400919535","html_url":"https://github.com/aspnet/EntityFrameworkCore/issues/12457#issuecomment-400919535","issue_url":"https://api.github.com/repos/aspnet/EntityFrameworkCore/issues/12457","id":400919535,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDkxOTUzNQ==","user":{"login":"Trojaner25","id":1809172,"node_id":"MDQ6VXNlcjE4MDkxNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1809172?v=4","gravatar_id":"","url":"https://api.github.com/users/Trojaner25","html_url":"https://github.com/Trojaner25","followers_url":"https://api.github.com/users/Trojaner25/followers","following_url":"https://api.github.com/users/Trojaner25/following{/other_user}","gists_url":"https://api.github.com/users/Trojaner25/gists{/gist_id}","starred_url":"https://api.github.com/users/Trojaner25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trojaner25/subscriptions","organizations_url":"https://api.github.com/users/Trojaner25/orgs","repos_url":"https://api.github.com/users/Trojaner25/repos","events_url":"https://api.github.com/users/Trojaner25/events{/privacy}","received_events_url":"https://api.github.com/users/Trojaner25/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T05:57:38Z","updated_at":"2018-06-28T05:57:38Z","author_association":"NONE","body":"Thanks @ajcvickers, this indeed answered my question. I will likely cross compile against netcoreapp2.1 for generating migrations."}}
{"actor":{"display_login":"Trojaner25"}}