Hello again. My VSPackage takes a number of command line switches. I've followed the documentation and registered them under HKLM\blah blah blah\AppCommandLine\<myswitch> for each switch. The problem is that they don't seem to work under the experimental hive.
If I create these keys under the REAL hive, then I can run devenv /MySwitch without a problem and it recognizes it, but when I put them under the Exp hive, it doesn't notice they're there.
I suspect the problem has to do with the parsing of the /rootsuffix switch. If I do "devenv /MySwitch /rootsuffix Exp" then it recognizes my switch, but only if it's still in the Main Hive. So that tells me that the VS command line parse doesn't "look ahead". OK, that's fine, but if I do "devenv /rootsuffix Exp /MySwitch" that doesn't work either. That tells me that by the time VS processes the /rootsuffix switch, it's already too late to read my switches from the Experimental hive.
Yikes! Is there a workaround for this? I'd really like to be able to debug my command-line switches without writing to my production hive.
Thanks!
If I create these keys under the REAL hive, then I can run devenv /MySwitch without a problem and it recognizes it, but when I put them under the Exp hive, it doesn't notice they're there.
I suspect the problem has to do with the parsing of the /rootsuffix switch. If I do "devenv /MySwitch /rootsuffix Exp" then it recognizes my switch, but only if it's still in the Main Hive. So that tells me that the VS command line parse doesn't "look ahead". OK, that's fine, but if I do "devenv /rootsuffix Exp /MySwitch" that doesn't work either. That tells me that by the time VS processes the /rootsuffix switch, it's already too late to read my switches from the Experimental hive.
Yikes! Is there a workaround for this? I'd really like to be able to debug my command-line switches without writing to my production hive.
Thanks!