Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: Migrations: Leading slash in MigrationsDirectory causes entire project to be copied into a sub-folder (yes, really) [938]

$
0
0
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.

![Image](http://entityframework.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=entityframework&WorkItemId=938&FileAttachmentId=634878)


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.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>