AGENTS.md: 提交前必须编译和复制 DLL
This commit is contained in:
parent
fc0a6b0397
commit
62b718fa1e
17
AGENTS.md
17
AGENTS.md
@ -118,6 +118,23 @@ This applies to:
|
||||
|
||||
Physics constants (9.81f, 3.6f, π) and documented model parameters (Phase 2 cutoff = 30s) are NOT arbitrary defaults — they are legitimate parts of the physical model.
|
||||
|
||||
## 9. Git Commit Must Include DLL
|
||||
|
||||
**Every commit must bundle the compiled CounterDrone.Core.dll.** Never leave DLL changes as a separate follow-up commit. The full commit flow:
|
||||
|
||||
```bash
|
||||
# 1. Run full test suite (builds Core.dll)
|
||||
pwsh -Command "dotnet test test/unit/CounterDrone.Core.Tests/"
|
||||
|
||||
# 2. Copy DLL to Unity plugin directories
|
||||
cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll src/Unity/Assets/Plugins/CounterDrone.Core/
|
||||
cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll unity_plugins/
|
||||
|
||||
# 3. Commit everything at once
|
||||
git add -A
|
||||
git commit -m "..."
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user