[release/13.5] Preserve TypeSystem compatibility with older CLIs

Merged
AD
2mo ago
+43-2

Backport of #19506 to release/13.5

/cc @joperezr

Customer Impact

TypeScript AppHosts using the 13.5 SDK/codegen fail to start under CLI 13.4.6 with a MissingMethodException, even though this CLI/SDK version skew is intended to remain compatible.

Testing

Aspire.Hosting.CodeGeneration.TypeScript.Tests passed 100/100 on release/13.5. The source PR also validated physical CLI 13.4.6 and current CLI scenarios, confirming older CLIs omit NODE_EXTRA_CA_CERTS while current CLIs still populate it.

Risk

Low. The change is localized to capability-probing one additive TypeSystem property; current CLIs retain existing behavior and older CLIs skip only the unsupported certificate metadata. The source PR's Java follow-up is not applicable because release/13.5 does not contain the CommandSpec.UpToDateCheck feature.

Regression?

Yes — introduced in 13.5 by #19365.