locked
Single File Generator not work in custom project type created by MPF? RRS feed

  • Question

  • hi, all.
    I have create a custom project used MPF and I create a single file generator to support generating output file when editing xml file.

    My single file generator works well in visual studio 2008 with other project type such as csproj, but it can't work in my custom project type, I even can't see "run custom tool" in the context menu.

    So, may be there are some bugs in FileNode or some other classes of MPF?

    Thursday, November 5, 2009 7:10 AM

Answers

  • Hi,
            So you are writing a custom tool for some extension or projects. Is your generator in the below registry ?
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0exp\Generators\{Your Guid}

    I am in 9.0exp since I use experimental hive (I run it as devenv /rootsuffix exp or devenv /rootsuffix exp /Ranu (if in HKCU)).

    Are you trying in machine where your package is registered as a package? Then check the registry file which gets registered.

    Did you use ProvideCodeGeneratorAttribute class to assign details?


    Thanks
    PKR


    • Marked as answer by Nancy Shao Thursday, November 19, 2009 2:28 AM
    Tuesday, November 10, 2009 5:11 AM

All replies

  • ?

    Monday, November 9, 2009 1:16 AM
  • Hi,
         From your question, I understand that you have written a package and project type. Did you write tool window? Are you in experimental mode of VS?
    Monday, November 9, 2009 3:49 AM
  • Hi Vega.
    Yes, I have written a package and project type and actually I am in VS 2008 shell Isolated Mode.

    Tuesday, November 10, 2009 2:20 AM
  • Hi,
            So you are writing a custom tool for some extension or projects. Is your generator in the below registry ?
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0exp\Generators\{Your Guid}

    I am in 9.0exp since I use experimental hive (I run it as devenv /rootsuffix exp or devenv /rootsuffix exp /Ranu (if in HKCU)).

    Are you trying in machine where your package is registered as a package? Then check the registry file which gets registered.

    Did you use ProvideCodeGeneratorAttribute class to assign details?


    Thanks
    PKR


    • Marked as answer by Nancy Shao Thursday, November 19, 2009 2:28 AM
    Tuesday, November 10, 2009 5:11 AM