Perry,
>How would it be possible to have a compile time choice? It would seem that a VFP-CLR would be completely different from a standalone VFP. It would seem to be one or the other.
Theoretically, you'd have to make the compile option output (MS favorite word is "emit") MSIL (Microsoft Intermediate Language) and matching metadata, which would then be run by the CLR.
That would mean parsing the VFP code and mapping VFP commands over to the proper MSIL representation (or mapping them over to VB or C# commands and then running its MSIL-emitter).
You'd probably give up data-related commands, macro expansion, and certain dynamic runtime features just for that compile option, but would keep the full product for other compile options.