Skip to content

Add directory-scoped agent instructions for deprecated MSBuildTaskHost code - #14136

Merged
rainersigwald merged 3 commits into
mainfrom
copilot/add-agent-instructions-deprecated-folder
Jun 23, 2026
Merged

rainersigwald merged 3 commits into
mainfrom
copilot/add-agent-instructions-deprecated-folder

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Context

src/MSBuildTaskHost builds the .NET Framework 3.5 MSBuildTaskHost.exe and is not under active development. Agents/Copilot have sometimes tried to muck with stuff in here and had to be discouraged.

Changes Made

  • Added src/MSBuildTaskHost/AGENTS.md — a nested AGENTS.md directing agents not to edit the folder unless explicitly instructed, and noting the .NET Framework 3.5 / named-pipe constraints.
    • Uses AGENTS.md (vs. a Copilot-only .github/instructions/*.instructions.md) for cross-agent compatibility — honored by Copilot's nested-instruction support and Claude alike.
    • Cross-references the existing README.md in the folder.

Testing

N/A — documentation-only change.

Notes

N/A

Copilot AI and others added 3 commits June 22, 2026 21:56
Co-authored-by: rainersigwald <3347530+rainersigwald@users.noreply.github.com>
Co-authored-by: rainersigwald <3347530+rainersigwald@users.noreply.github.com>
@rainersigwald
rainersigwald marked this pull request as ready for review June 23, 2026 01:14
Copilot AI review requested due to automatic review settings June 23, 2026 01:14
@rainersigwald
rainersigwald enabled auto-merge (squash) June 23, 2026 01:15

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.

Pull request overview

Adds directory-scoped agent guidance for src/MSBuildTaskHost, documenting that the folder is legacy (.NET Framework 3.5 / named-pipe compatibility) and should not be modified except for explicit compatibility/servicing needs.

Changes:

  • Introduced src/MSBuildTaskHost/AGENTS.md with explicit “do not edit unless required/explicitly instructed” guidance.
  • Documented key constraints for the folder (targets .NET Framework 3.5; must keep named-pipe communication compatible) and pointed to the existing README.md.

@rainersigwald
rainersigwald merged commit b679c1d into main Jun 23, 2026
15 checks passed
@rainersigwald
rainersigwald deleted the copilot/add-agent-instructions-deprecated-folder branch June 23, 2026 10:13
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.

4 participants