VSTmeplate ProjectItem element, attribute OpenInEditor RRS feed

  • Question

  • I'm writing a project system without using MPF and have some questions.

    I have project template 

    <VSTemplate Type="Project" Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
      <Description>Sample X Project</Description>
      <Icon Package="{dbde082e-1091-4365-b595-d4435617137f}" ID="XProjectTemplateIcon"/>
      <Project File="XProject.xproj" ReplaceParameters="true">
       <ProjectItem TargetFileName="Source\Main.x" OpenInEditor="true" ReplaceParameters="true">Main.x</ProjectItem>

    All is good: I see template in New Project Dialog, it can be created successfully. But when new project creates from this template, Main.x don't open automatically(OpenInEditor is set "true"). Why it can be?

    I have no automation implementation(no classes like OAProject, OAProjectItem, OAFileItem and so on) - is it need in this case?

    Please excuse me for bad English - I'm not a native speaker.

    Tuesday, September 7, 2010 4:18 PM


  • Problem solved. EnvDTE.ProjectItem.Open must be implmented
    • Marked as answer by optimisto Thursday, September 9, 2010 1:46 PM
    Thursday, September 9, 2010 1:45 PM