-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
NuGet Commands: Drop-Database #4907
Conversation
{ | ||
Reporter.Output.WriteLine(message); | ||
Reporter.Output.WriteLine( | ||
$"Are you sure you want to drop the database '{database}' on server '{dataSource}'? (y/N)"); | ||
var readedKey = Console.ReadKey().KeyChar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we skip read altogether this if --force
was used?
It looks like Otherwise, |
Thanks. I'll do a bit of bashing on this too before merging. |
param ($database, $dataSource) | ||
|
||
return $PSCmdlet.ShouldProcess("$database on $dataSource") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad news. This results in Cannot serialize delegates over unmanaged function pointers, dynamic methods or methods outside the delegate creator's assembly.
😞
Recalling. We need to rethink how the confirmation works. One idea @natemcmaster had was to get the information in a separate command (e.g. |
This includes changes from #4657. Only 03f95a2 needs review.
cc @natemcmaster @laskoviymishka (aka Rarity)
Resolves #2476