Relative directory passed to Scaffold-DbContext for OutputDirectory parameter creates a project directory called "." #3830
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Relevant Assemblies
EF 7.0.0-rc1-final
EntityFramework.Commands.7.0.0-rc1-final
EntityFramework.MicrosoftSqlServer.Design.7.0.0-rc1-final
Visual Studio 2015, .NET 4.6 Console Application
When running
Scaffold-DbContext
from the Package Manager Console, if you pass a directory in the style of ".\Models" to argument-OutputDirectory
, a project folder is added called "." with the child directory "Models".As a user, I assumed the
-OutputDirectory
parameter expected (or at least would work with) this type of path as it does with other PowerShell cmdlets.As a side note, if you delete the "." folder from within Visual Studio, it deletes as much as it can from the project folder on the file system, which is unfortunate.
The text was updated successfully, but these errors were encountered: