Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update .gitignore to ignore all .exe files - #123220

#123220
Merged
stephentoub merged 2 commits into
maindotnet/runtime:mainfrom
copilot/update-gitignore-to-ignore-exedotnet/runtime:copilot/update-gitignore-to-ignore-exeCopy head branch name to clipboard
Jan 20, 2026
Merged

Update .gitignore to ignore all .exe files#123220
stephentoub merged 2 commits into
maindotnet/runtime:mainfrom
copilot/update-gitignore-to-ignore-exedotnet/runtime:copilot/update-gitignore-to-ignore-exeCopy head branch name to clipboard

Conversation

Copilot AI commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Description

Adds *.exe to .gitignore to prevent accidental commits of executable files like nuget.exe.

Changes:

  • Added *.exe pattern to ignore all executable files
  • Added exceptions for existing test resource .exe files that must remain tracked:
    • src/libraries/System.Diagnostics.FileVersionInfo/tests/.../NativeConsoleApp.exe
    • src/libraries/System.Reflection.Metadata/tests/Resources/NetModule/AppCS.exe
    • src/libraries/System.Reflection.Metadata/tests/Resources/Misc/Signed.exe
Original prompt

copilot has an unfortunate habit of trying to merge nuget.exe into the repo. Please ensure that the .gitignore file ignores all .exe files.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI changed the title [WIP] Update .gitignore to exclude all .exe files Update .gitignore to ignore all .exe files Jan 15, 2026
Copilot AI requested a review from stephentoub January 15, 2026 16:22
@stephentoub
stephentoub marked this pull request as ready for review January 15, 2026 16:31
Copilot AI review requested due to automatic review settings January 15, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@stephentoub
stephentoub merged commit facd688 into main Jan 20, 2026
156 of 159 checks passed
@jkotas
jkotas deleted the copilot/update-gitignore-to-ignore-exe branch January 20, 2026 03:13
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.