Skip to content

Remove the unnecessary definitions in the csproj#2183

Open
0x5bfa wants to merge 2 commits into
microsoft:mainfrom
0x5bfa:csproj
Open

Remove the unnecessary definitions in the csproj#2183
0x5bfa wants to merge 2 commits into
microsoft:mainfrom
0x5bfa:csproj

Conversation

@0x5bfa
Copy link
Copy Markdown
Contributor

@0x5bfa 0x5bfa commented May 25, 2026

Description

  • Remove the unnecessary Compile definitions for XAML files
  • Remove the unnecessary Content definitions for image files & sample code snippets

How Has This Been Tested?

  • Build and deploy
  • See the images and sample codes are displayed

Copilot AI review requested due to automatic review settings May 25, 2026 14:59
@0x5bfa
Copy link
Copy Markdown
Contributor Author

0x5bfa commented May 25, 2026

Make sure to enable the "hide whitespace" option in the diff view.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR simplifies the WinUIGallery project configuration by consolidating content inclusion logic into the main .csproj and removing the separate ContentIncludes.props file.

Changes:

  • Refactored WinUIGallery.csproj to use glob-based Content/None updates and removed large explicit item lists.
  • Removed WinUIGallery/ContentIncludes.props and updated guidance docs accordingly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
WinUIGallery/WinUIGallery.csproj Consolidates content inclusion/copy behavior into the project file and removes previous granular item removals.
WinUIGallery/ContentIncludes.props Deleted; prior content include/remove logic is no longer imported.
.github/copilot-instructions.md Updates docs to no longer reference ContentIncludes.props for snippet inclusion.

Comment thread WinUIGallery/WinUIGallery.csproj
Comment on lines +104 to +105
<Content Update="Assets\**" CopyToOutputDirectory="PreserveNewest" />
<Content Remove="Assets\**\*.cs" />
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AFAIK assets are supposed to be included as Content not None.

Comment thread WinUIGallery/WinUIGallery.csproj
Comment thread WinUIGallery/WinUIGallery.csproj Outdated
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.

2 participants