Clarify Default includes and excludes section in .NET project SDK overview#52482
Open
Clarify Default includes and excludes section in .NET project SDK overview#52482
Conversation
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Default Compilation Includes section for clarity
Clarify Default includes and excludes section in .NET project SDK overview
Mar 20, 2026
BillWagner
approved these changes
Mar 20, 2026
Member
BillWagner
left a comment
There was a problem hiding this comment.
This is ready for final review.
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the Default includes and excludes section in the .NET project SDK overview to reduce confusion about what the SDK implicitly includes, how the glob table should be read, and why None has a remove glob.
Changes:
- Replaces the prior opening paragraph with a bulleted explanation of
Compile,EmbeddedResource, andNoneitem types. - Adds pre-table definitions for include, exclude, and remove glob semantics.
- Adds a post-table explanation for
None’s remove glob, and upgrades the duplicate-items guidance to a[!WARNING]admonition.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gewarren
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Default includes and excludes" section was vague about what each item type does, didn't explain the glob column semantics, and left the "Remove glob" column unexplained—leading users to incorrectly assume they should add these globs to their project files.
Changes
Compile,EmbeddedResource, andNoneitems do (compiled into assembly / embedded in assembly / tracked but not compiled or embedded).Noneuses**/*as its include, so the SDK removes**/*.csand**/*.resxto prevent those files from appearing in bothNoneand their primary item types simultaneously.[!WARNING]admonition: The original plain-text sentence was easy to miss. Rewritten as a[!WARNING]block with a clearer message: the SDK already includes these items—don't define them again.Original prompt
✨ 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