Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>'export template' does not work for C++ projects. If you want templates for them, you need to create it yourself: see my answer <a href="https://stackoverflow.com/questions/1715195/how-to-create-a-visual-studio-2008-c-project-template/1715258#1715258">here</a>. It involves some work, but if you use this kind of projects a lot, the work is well-spent time.</p> <p><strong>edit</strong></p> <p>I looked up my code, something like this should get you started; the onFinish method in default.js gets called after clicking 'Ok' in the default wizards. Note that I did not test this!</p> <pre><code>function onFinish( selProj, selObj ) { var strProjectPath = wizard.FindSymbol('PROJECT_PATH'); var prjCpp; var prjCs; CreateProjects( strProjectPath, prjCpp, prjCs ); //project config here prjCpp.Object.Save(); prjCs.Object.Save(); selProj = prjCpp; } function CreateProjects( path, prjCpp, prjCs ) { var strProjTemplatePath = wizard.FindSymbol('ABSOLUTE_PATH'); //get template from our template dir var strProjTemplateCpp = strProjTemplatePath + '\\default.vcproj'; var strProjTemplateCs = strProjTemplatePath + '\\default.csproj'; var Solution = dte.Solution; if( wizard.FindSymbol( "CLOSE_SOLUTION" ) ) { Solution.Close(); strSolutionName = wizard.FindSymbol( "VS_SOLUTION_NAME" ); if( strSolutionName.length ) { var strSolutionPath = strProjectPath.substr( 0, strProjectPath.length - strProjectName.length ); Solution.Create(strSolutionPath, strSolutionName); } } var oTarget = wizard.FindSymbol( "TARGET" ); prjCpp = oTarget.AddFromTemplate( strProjTemplateCpp, strProjectPath, strProjectName + '.vcproj' ); prjCs = oTarget.AddFromTemplate( strProjTemplateCs, strProjectPath, strProjectName + '.csproj' ); Solution.Projects.Add( prjCpp ); Solution.Projects.Add( prjCs ); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload