nbsp; nYear = d.getFullYear(); 30. wizard.AddSymbol("CC_CURRENT_YEAR", nYear); 31. wizard.AddSymbol("CC_CURRENT_DATE", d.toString()); 32. 33. // Create project and configurations 34. selProj = CreateCustomProject(strProjectName, strProjectPath); 35. AddConfigurations(selProj, strProjectName); 36. AddFilters(selProj); 37. 38. var InfFile = CreateCustomInfFile(); 39. AddFilesToCustomProj(selProj, strProjectName, strProjectPath, InfFile); 40. AddPchSettings(selProj); 41. InfFile.Delete(); 42. 43. selProj.Object.Save(); 44. } 45. catch (e) { 46. if (e.description.length != 0) 47. SetErrorInfo(e); 48. return e.number; 49. } 50.} 51. 52.function CreateCustomProject(strProjectName, strProjectPath) { 53. try { 54. var strProjTemplatePath = wizard.FindSymbol('PROJECT_TEMPLATE_PATH'); 55. var strProjTemplate = ''; 56. var WizardVersion = wizard.FindSymbol('WIZARD_VERSION'); 57. if(WizardVersion >= 10.0) 58. strProjTemplate = strProjTemplatePath + '\\default.vcxproj'; 毕业论文 59. else 60. strProjTemplate = strProjTemplatePath + '\\default.vcproj'; 61. 62. var Solution = dte.Solution; 63. var strSolutionName = ""; 64. if (wizard.FindSymbol("CLOSE_SOLUTION")) { 65. Solution.Close(); 66. strSolutionName = wizard.FindSymbol("VS_SOLUTION_NAME"); 67.&nbs上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|