diff --git a/src/ef/Commands/MigrationsBundleCommand.cs b/src/ef/Commands/MigrationsBundleCommand.cs index f22342c2d3a..3e0e8a81bbe 100644 --- a/src/ef/Commands/MigrationsBundleCommand.cs +++ b/src/ef/Commands/MigrationsBundleCommand.cs @@ -192,6 +192,12 @@ protected override int Execute(string[] args) File.Delete(destination); } + var destinationDir = Path.GetDirectoryName(destination); + if (!string.IsNullOrWhiteSpace(destinationDir)) + { + Directory.CreateDirectory(destinationDir); + } + File.Move( Path.Combine(publishPath, bundleName + exe), destination);