dotnet / dotnet/project-system

Suppress compilation errors until there has been a successful restore

Open
#928 22 comments 4 reactions 1 assignee Claimed by @davkean View on GitHub
Feature-Language-Service Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

- Create a new C# Console app
- Observe C# editor window and Error List

Expected: No errors show up, either in the Error List or as squigglies in the editor
Actual: Errors may be displayed temporarily until the NuGet restore operation completes

Suggested fix: When we open a project, disable errors from the compiler until a restore operation has completed for the project. (We should still probably show the errors if the restore operation completed unsuccessfully, because that might be because one of the dependencies wasn't found, but NuGet will still write a partial assets file with what it was able to restore.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.