// new case

// Do Windows dance.

break

Having default: cases in such switch statements isn’t
recommended, because then the analyzer can’t help you find
all the cases that need to be handled.

Also, any tests like the one referenced above that set the
debugDefaultTargetPlatformOverride are no longer needed
for Linux and Windows applications.

Timeline

Landed in version: 1.15.4
In stable release: 1.17

References

API documentation:

TargetPlatform

Relevant issues:

Issue #31366

Relevant PR:

Add Windows, and Linux as TargetPlatforms