-
Notifications
You must be signed in to change notification settings - Fork 236
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
Invoking dotnet scaffold in an empty directory #3101
Comments
I would say that it is not a valid context for the current set of scaffolders rather than for the tool itself. A future scaffolder could very well work with an empty directory. I think we can still find a way to message this better to the user, but we want to make sure not to block future valid scenarios. |
Yeah, I agree. If there is a plan to move |
I think the one change I could potentially see here is that if we have a REQUIRED option ( |
Not sure I'd say "move
Definitely agree that we could make the experience of selecting projects better (both when there are none and when there are too many - like when you accidentally execute it in the root of your dev drive). Probably something to get the PMs in on. A problem we run into is that we can't really fast-fail here. We need to let the scaffolders themselves decide. We could maybe allow scaffolders to expose a property that says "allow empty folder"? And if all of them say |
Ask a question
Right now when we do
dotnet scaffold
from a directory that doesn't contain a .NET project, we can interact with the tool, but nothing happens which of course makes sense as there is no .NET project.In this case, should we throw an error message instead of letting users interact with the tool blindly? Because it's not a valid context for the tool.
The text was updated successfully, but these errors were encountered: