Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative directory passed to Scaffold-DbContext for OutputDirectory parameter creates a project directory called "." #3830

Closed
ghost opened this issue Nov 20, 2015 · 1 comment
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@ghost
Copy link

ghost commented Nov 20, 2015

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.

@lajones
Copy link
Contributor

lajones commented Dec 8, 2015

Fixed with PR #3959.

@lajones lajones closed this as completed Dec 8, 2015
@ajcvickers ajcvickers modified the milestones: 1.0.0-rc2, 1.0.0 Oct 15, 2022
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

3 participants