Skip to content

Add NuGet package guidance to CS1061 compiler error documentation #47961

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 14, 2025

This PR adds general guidance to help developers find missing NuGet packages when encountering CS1061 compiler errors, addressing the issue where specific packages like Microsoft.AspNetCore.Identity.UI are needed but not documented.

Changes Made

Added a fourth correction step to the CS1061.md documentation that directs users to search NuGet.org when they suspect a missing member should exist but doesn't. This provides a general solution for finding appropriate NuGet packages without maintaining a comprehensive list of specific packages.

The new guidance follows the existing documentation pattern and aligns with the maintainer feedback to provide general directions rather than specific package references.

Before

The documentation only provided three ways to correct CS1061 errors:

  1. Check spelling
  2. Add missing member to class
  3. Use extension method

After

Now includes a fourth option:
4. Search NuGet.org for packages containing the missing member

This change helps developers like the issue reporter who needed Microsoft.AspNetCore.Identity.UI but provides a scalable solution that works for any missing package scenario.

Also updated .gitignore to prevent accidentally committing node_modules/ from temporary tooling.

Fixes #37017.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/cs1061.md docs/csharp/language-reference/compiler-messages/cs1061

@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Aug 14, 2025
Copy link
Contributor

PoliCheck Scan Report

The following reports lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a comment that you post to the PR. The feedback helps reduce false positive instances in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@Copilot Copilot AI changed the title [WIP] Nuget requirement Add NuGet package guidance to CS1061 compiler error documentation Aug 14, 2025
@Copilot Copilot AI requested a review from BillWagner August 14, 2025 12:59
Copilot finished work on behalf of BillWagner August 14, 2025 12:59
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot One change, and then this is ready.

Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@Copilot Copilot AI requested a review from BillWagner August 15, 2025 14:37
Copilot finished work on behalf of BillWagner August 15, 2025 14:37
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now LGTM.

@BillWagner BillWagner requested a review from adegeo August 15, 2025 14:39
@BillWagner BillWagner marked this pull request as ready for review August 15, 2025 14:39
@BillWagner BillWagner requested a review from a team as a code owner August 15, 2025 14:39
Copy link
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@Copilot Copilot AI requested a review from BillWagner August 15, 2025 18:14
Copilot finished work on behalf of BillWagner August 15, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
csharp-diagnostics/subsvc dotnet-csharp/svc lang-reference/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nuget requirement
3 participants