locked
Changing new custom project type settings RRS feed

  • Question

  • Hi,

    I create a new project type for example: *.myproj

    I am trying to change the settings that appeared in the new project screens:

    default folder,default file name, project name, project type .

    I do those steps:

    1. declaring:

    [ProvideProjectFactory(typeof(MyProjectFactory), null,        "My project file (*.myproj);*.myproj""myproj""myproj",        @"\..\NullPath",        LanguageVsTemplate = "MyProjectLanguage",        NewProjectRequireNewFolderVsTemplate=false)]

    2. Creating zip file that includes: icon, vstemplate,and MyProj.myproj files

    vstemplate look likes:

    <VSTemplate Version="3.0.0" Type="Project"
        xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
      <TemplateData>
        <Name>SimpleProject Application</Name>
        <Description>
          A project for creating a SimpleProject application
        </Description>
        <Icon>MyProj.ico</Icon>
        <ProjectType>MyProjectLanguage</ProjectType>
      </TemplateData>
      <TemplateContent>
        <Project File="MyProj.myproj">
        </Project>
      </TemplateContent>
    </VSTemplate>

    3. putting the zip files in :

    ..\Roaming\Microsoft\VisualStudio\10.0Exp\ProjectTemplates

    and

    ..\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates

    4. running setup command

    After all that, I am running the isolated shell ->open new project screen , but this project type

    isn't appeared there.

    Anyone know what is missing? Do those steps correct?

    Thanks.


    Wednesday, July 11, 2012 9:35 AM

Answers

All replies

  • Hi,

    I found you had register your project template. Can you ran your vspackage well? Will your project template appear?

    Here is a reference about Creating a Basic Project System:http://msdn.microsoft.com/en-us/library/cc512961.aspx which I think you can read.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Ego Jiang Tuesday, August 7, 2012 7:59 AM
    Thursday, July 12, 2012 6:08 AM
  • Hi,

    I think my post link can solve your issue well. So I will mark my reply as answer.

    If you feel it is not the answer, please unmark it.

    Thank you for your understanding and support.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, August 7, 2012 7:59 AM