You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,3 +206,27 @@ After upgrading, use VS Code's **Problems panel** (or `get_errors` tool) to conf
206
206
-`body: null` may not be allowed (use `body: ""` instead)
207
207
- New required properties may be added
208
208
- Property types may become stricter
209
+
210
+
## Common Mistakes to Avoid
211
+
212
+
### PRESET Metadata
213
+
-**PRESET should be "No"** for most samples
214
+
- Only set `"PRESET": "Yes"` if the sample is **reusable for other purposes** (e.g., a generic configuration that developers can apply to their own APIs)
215
+
- Having a `devproxyrc.json` config file does NOT automatically make it a preset
216
+
217
+
### Startup Commands
218
+
-`.devproxy/devproxyrc.json` is a **default path** that Dev Proxy looks for automatically
219
+
- When config is in `.devproxy/devproxyrc.json`, the startup command should just be `devproxy` (no `--config-file` needed)
220
+
- Only use `--config-file` when the config file is in a non-default location or has a non-default name
221
+
222
+
### Updating Dates
223
+
- When updating sample dates, **always update both files**:
224
+
-`assets/sample.json`: Update `updateDateTime` field
225
+
-`README.md`: Update the version history table with the new date
226
+
- Dates must stay in sync between these two files
227
+
-**Pre-release updates** (sample not yet merged to main):
228
+
- Update both `creationDateTime` and `updateDateTime` in `sample.json`
229
+
- Update the v1.0 date in the README version history table
230
+
-**Post-release updates** (sample already in main):
231
+
- Only update `updateDateTime` in `sample.json`
232
+
- Add a new version entry (e.g., 1.1) to the README version history table
0 commit comments