Skip to content

When restore locked mode fails, ensure the assets file contains a target for each target framework so that SDK doesn't overwrite the error messages - #3872

Merged
nkolev92 merged 5 commits into
devfrom
dev-nkolev92-fixErrorHandlingInVS
Jan 29, 2021
Merged

nkolev92 merged 5 commits into
devfrom
dev-nkolev92-fixErrorHandlingInVS

Conversation

@nkolev92

@nkolev92 nkolev92 commented Jan 27, 2021 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#10486

Regression? Last working version:

Description

When a restore fails due to locked mode or because of an invalid project a build makes the error disappear in VS.
The reason for that is that the assets file contains no targets. This adds a dummy target and avoids that problem.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@nkolev92
nkolev92 requested a review from a team as a code owner January 27, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When in Visual Studio, a build makes an NU1004 or NU1105 disappear from the error list and leads to NETSDK1005

3 participants