-
Notifications
You must be signed in to change notification settings - Fork 563
Progress reporting for #r nuget #431
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
Conversation
| events | ||
| .First() | ||
| .Should() | ||
| .Match(e => e is DisplayedValueProduced && ((DisplayedValueProduced)e).Value.ToString().Contains("Attempting to install")); |
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.
probably here we should assert on a sequence of events
| if (!string.IsNullOrWhiteSpace(package.PackageVersion)) | ||
| { | ||
| message += $", version {package.PackageVersion}"; | ||
| } |
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.
Can we also get a notification about which actual version was installed in the case where the version was not specified?
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.
Will do this in a subsequent change
| } | ||
| else | ||
| { | ||
| context.Publish(new DisplayedValueProduced($"Failed to add reference to package {package.PackageName}", context.Command)); |
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.
When it fails, why does it fail, and is there additional information we can surface?
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.
Ditto
| message += $", version {package.PackageVersion}"; | ||
| } | ||
|
|
||
| var key = message; |
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.
Maybe call this valueId so it's clearer what its significance is.
No description provided.