Skip to content

Adapt MSBuild logger to a NuGet logger #18

Closed

Description

@eerhardt

When loading a LockFile, the API takes a NuGet.Common.ILogger. In order to get good logging information from NuGet, we should implement a NuGet logger that can write to the MSBuild logger in our tasks that need to load a LockFile.

See the TODO in the LockFileCache class added in #8.

Activity

  1. added this to the 1.0 RTM milestone on Sep 16, 2016
  2. modified the milestones: 1.1, 1.0 RTM on Jan 19, 2017
  3. removed this from the 1.1 milestone on May 10, 2017
  4. dsplaisted commented on May 10, 2017

    @dsplaisted
    Member

    @emgarten What kind of errors / warnings could LockFileUtilities.GetLockFile log? Should we be forwarding those as MSBuild errors and warnings when we call this method in an MSBuild task?

  5. emgarten commented on May 10, 2017

    @emgarten
    Member

    Yes, they should be displayed to the user in the rare case something is logged there. NuGet logs an error if the file cannot be opened or the file is invalid.

  6. added this to the milestone on May 16, 2017
  7. modified the milestones: 2.0.0, 2.1.0, on May 22, 2017
  8. modified the milestones: 2.3.0, 2.1.3xx on Mar 20, 2018
  9. self-assigned this
    on Mar 20, 2018
  10. livarcocc commented on Mar 29, 2018

    @livarcocc
    Contributor

    Fixed by #2083.

  11. added a commit that references this issue on Jun 5, 2020
  12. added theissue type on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions