2.IWizad接口
在开始操作前,首先说说“IWizard”接口:
Visual Stdudio提供了IWizard接口,该接口提供了几个方法帮助用户在创建模板项时可运行自定义的代码,见下表,本文就是通过这个接口实现的。
Name Description BeforeOpeningFile(ProjectItem)
Runs custom wizard logic before opening an item in the template.
ProjectFinishedGenerating(Project)
Runs custom wizard logic when a project has finished generating.
ProjectItemFinishedGenerating(ProjectItem)