Agent skill
dotnet-retarget-review-gate
How to gate a repo-wide .NET target framework retarget without missing hidden TFM dependencies
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/dotnet-retarget-review-gate
SKILL.md
Context
Use this when a .NET solution changes target frameworks across app, tests, and packaging.
Pattern
- Enumerate every authored project that carries a TFM and write the exact expected replacement values, including
-windowsdesktop variants. - Search authored tests/docs for hardcoded TFM strings and
bin\Debug\netX...paths; move them with the project files or they become false failures and stale guidance. Treat acceptance matrices and review checklists as blocking artifacts when they restate framework expectations. - For WPF desktop apps, verify the retargeted desktop projects keep the Windows-specific TFM and
UseWPF=true. - Re-run the full solution test baseline and any installer/package build that publishes from the app project.
- If packaging is framework-dependent, call out the runtime prerequisite change explicitly. If the app depends on WebView2, keep that prerequisite in scope too.
Good signs
- Every authored
netXliteral has a clear reason to stay or is updated. - Desktop build, test, and publish still succeed on the retargeted Windows TFM.
- Reviewer evidence includes both regression results and packaging results.
Anti-patterns
- Reviewing only csproj diffs and ignoring tests that hardcode the old output folder.
- Updating executable tests while leaving acceptance matrices/checklists on the old TFM, which makes the slice look green but leaves reviewers following stale guidance.
- Treating installer success as proof that target machines have the right runtime.
- Forgetting that WPF desktop projects need the Windows-specific target framework, not plain
net8.0.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?