{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1196","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1196/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1196/events","html_url":"https://github.com/aspnet/EntityFramework/issues/1196","id":50655002,"number":1196,"title":"Can't Enable-Migrations or Add-Migration : The term 'xxx' is not recognized as the name of a cmdlet","user":{"login":"jbuiss0n","id":6897494,"avatar_url":"https://avatars.githubusercontent.com/u/6897494?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuiss0n","html_url":"https://github.com/jbuiss0n","followers_url":"https://api.github.com/users/jbuiss0n/followers","following_url":"https://api.github.com/users/jbuiss0n/following{/other_user}","gists_url":"https://api.github.com/users/jbuiss0n/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuiss0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuiss0n/subscriptions","organizations_url":"https://api.github.com/users/jbuiss0n/orgs","repos_url":"https://api.github.com/users/jbuiss0n/repos","events_url":"https://api.github.com/users/jbuiss0n/events{/privacy}","received_events_url":"https://api.github.com/users/jbuiss0n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"bricelam","id":1226749,"avatar_url":"https://avatars.githubusercontent.com/u/1226749?v=3","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},"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/9","html_url":"https://github.com/aspnet/EntityFramework/milestones/Discussions","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/9/labels","id":692755,"number":9,"title":"Discussions","description":"<!--\r\n@huboard:{\"order\":101}\r\n-->","creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":33,"state":"open","created_at":"2014-06-16T19:38:35Z","updated_at":"2015-03-02T17:59:45Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2014-12-02T14:14:04Z","updated_at":"2015-03-04T18:50:05Z","closed_at":"2014-12-09T17:26:28Z","body":"Hello,\r\n\r\nI don't know if i'm in the right place to ask my question, sorry if not.\r\n\r\nI want to try some little things using EF Code migrations, so i've created a new **ASP.NET 5 Console Application**, using Visual Studio 2015 Preview.\r\nI then just go to my **Package Manager Console**, and put `Install-Package EntityFramework -Pre`. Everything is ok, i've the right dependencies in my **project.json**.\r\n\r\nI write some code, adding a BlogContext with 2 little entities (Blog / Post), everything looks fine, as i just copy/paste the sample here https://github.com/aspnet/EntityFramework/wiki/Using-EF7-in-Traditional-.NET-Applications.\r\n\r\nFinally, i want to enable migrations, so i'm back in my **Package Manager Console**, and put `Enable-Migrations` but this error happens :  `The term 'Enable-Migrations' is not recognized as the name of a cmdlet`.\r\n\r\nAs this command is not indicated in the EF wiki, i proceed to directly execute the command `Add-Migration MyFirstMigration`, but same error: `The term 'Add-Migration' is not recognized as the name of a cmdlet`.\r\n\r\nI've tried to reboot VS, to reboot Windows, to re-install Nuget, to reset the **Nightly Builds** packages source, but nothing went better...\r\n\r\nSo, i tried the exact same things using VS 2013 Update 4 and a classic Console Application, and it works fine !\r\n\r\nBut i really want to use ASP.NET 5, and the K projets style... Do someone have any idea about my problem ? Did i miss something ?\r\n\r\nThanks,\r\nJeremy"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/77219888","html_url":"https://github.com/aspnet/EntityFramework/issues/1196#issuecomment-77219888","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/1196","id":77219888,"user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T18:50:05Z","updated_at":"2015-03-04T18:50:05Z","body":"@ardalis - That latest issue is a bug with the scaffolded code. @bricelam is working on a fix... but in the meantime you just need to fix the scaffolded code to make sure it gets the right overload of `ForeignKey(...)`. Here is what the change looks like https://github.com/rowanmiller/UnicornStore/commit/b71cfc1ff155d0d580e4ca7fd70c4d019982cef3#diff-ead41050d624017563d55a02d52ab1e1R56"}}