This issue was copied from a public Connect issue http://connect.microsoft.com/VisualStudio/feedback/details/780284/entity-framework-code-first-migrations-crash
Steps:
* Create a project with a context
* Enable-Migrations
* Set MigrationsDirectory to "\Test"
* Add-Migration InitialCreate
Result:
The entire contents of your project folder (csproj, bin, etc.) is copied into a sub folder in your project with the same name as your project folder.

Comments: Additional fix in aaecd5ac3454 SlashDotDashRadioEdit (Fail fast for bad MigrationsDirectory passed on command-line) This is an additional fix for CodePlex 938 to catch the case where the Migrations directory is passed as a command-line parameter to the Enable-Migrations command. Tested manually.
Steps:
* Create a project with a context
* Enable-Migrations
* Set MigrationsDirectory to "\Test"
* Add-Migration InitialCreate
Result:
The entire contents of your project folder (csproj, bin, etc.) is copied into a sub folder in your project with the same name as your project folder.

Comments: Additional fix in aaecd5ac3454 SlashDotDashRadioEdit (Fail fast for bad MigrationsDirectory passed on command-line) This is an additional fix for CodePlex 938 to catch the case where the Migrations directory is passed as a command-line parameter to the Enable-Migrations command. Tested manually.