Skip to content

LockFile.LogMessages silently drops messages with codes introduced in later versions of NuGet #7126

@nguerrera

Description

@nguerrera

From @mishra14 on July 18, 2018 1:19

Issue

I am seeing that sdk is not picking up/displaying all the errors from the assets file for a .NET core project in VS.

Steps -

  1. Download the following zip and change the extension to .nupkg -
    SignedPackage.1.0.0.zip
  2. Install the package in VS to a .NET Core console app.
  3. The error list displays 2 warnings -
    image
  4. The assets file actually lists 3 warnings -
  "logs": [
    {
      "code": "NU3027",
      "level": "Warning",
      "warningLevel": 1,
      "message": "The signature should be timestamped to enable long-term signature validity after the certificate has expired."
    },
    {
      "code": "NU3018",
      "level": "Warning",
      "warningLevel": 1,
      "message": "The author primary signature found a chain building issue: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider."
    },
    {
      "code": "NU3037",
      "level": "Warning",
      "warningLevel": 1,
      "message": "The author primary signature validity period has expired."
    }

Info -

VS - 15.8 Preview 5 [27912.0.d15.8]

Copied from original issue: dotnet/sdk#2409

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:ErrorHandlingwarnings and errors/log messages & related error codes.Functionality:RestorePriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:Bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions