Repository navigation
Commit 0f4798e
WSLDVCPlugin.rc: use unmistakable placeholder sentinels
UpdateRCVersion.ps1 patches the .rc file via three string-Replace calls.
The previous "placeholders" were:
FILEVERSION 1,0,0,1 -> comma-form file version
VALUE "FileVersion", "1.0.0.1" -> dot-form file version
VALUE "ProductVersion", "InformationalVersion" -> InformationalVersion
Each was a footgun:
- 1.0.0.1 / 1,0,0,1 are plausible real version strings; a reader of the
.rc file cannot tell they are placeholders, and any future commit that
legitimately referenced them anywhere in the file would break the
patch step.
- "InformationalVersion" is the literal name of a real Windows VERSIONINFO
value-key. Documenting or referencing the field name in another VALUE,
comment, or BLOCK would silently corrupt the build.
- The script is destructive (rewrites in place); accidentally running it
twice would substitute into the previous substitution.
Replace all three with sentinels nobody will ever introduce by accident:
__FILEVERSION_COMMAS__
__FILEVERSION_DOTS__
__INFORMATIONAL_VERSION__
No behavior change. Local round-trip via pwsh confirms the produced .rc
is byte-identical to the previous output (ProductVersion=
"1.0.78-Beta3+sha.52f5039", FILEVERSION 1,0,78,0, etc.).
Co-authored-by: Copilot <[email protected]>1 parent 52f5039 commit 0f4798e
2 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments