眉標=Visual Stuido 副標=專案精靈範本 大標=製作Visual Stuido專案精靈 作者=文/林學文 ===========程式========== 程式1 範本檔程式碼範列 [!if SAMPLE_CHECKBOX] 您已選取了 [範例核取方塊] 選項 [!endif] [!if SAMPLE_RADIO_OPTION1] 您已選取了 [範例選項按鈕選項 1] 選項 [!else] 您已選取了 [範例選項按鈕選項 2] 選項 [!endif] 您已從範例清單方塊選取了下列選項: [!output SAMPLE_LISTBOX] ===========程式========== ===========程式========== 程式2 存取DTE物件 var Solution = dte.Solution; var strSolutionName = ""; 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); } } =========================