ile.WriteLine(strUserValue); 150. file.Close(); 151. 152. // Create project file 153. var strProjectNameWithExt = ''; 154. if(WizardVersion >= 10.0) 155. strProjectNameWithExt = strProjectName + '.win32.vcxproj'; 156. else 157. strProjectNameWithExt = strProjectName + '.win32.vcproj'; 158. 159. var oTarget = wizard.FindSymbol("TARGET"); 160. var prj; 161. if (wizard.FindSymbol("WIZARD_TYPE") == vsWizardAddSubProject) // vsWizardAddSubProject 162. { 163. var prjItem = oTarget.AddFromTemplate(strProjTemplate, strProjectNameWithExt); 164. prj = prjItem.SubProject; 165. } 166. else { 167. prj = oTarget.AddFromTemplate(strProjTemplate, strProjectPath+"\\proj.win32\\", strProjectNameWithExt); 168. } 169. return prj; 170. } 171. catch (e) { 172. throw e; 173. } 174.} 175. 176.function AddFilters(proj) { 177. try { 178. // Add the folders to your project 179. var strSrcFilter = wizard.FindSymbol('SOURCE_FILTER'); 180. var group = proj.Object.AddFilter('source'); 181. group.Filter = strSrcFilter; 182. 183. strSrcFilter = wizard.FindSymbol('INCLUDE_FILTER'); 184. group = proj.Object.AddFilter('include'); 185. group.Filter = strSrcFilter; 186. 187. strSrcFilter = wizard.FindSymbol('RESOURCE_FILTER'); 188.&n上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|