Personal tools
You are here: Home For Developers Tutorials How to create templates page 4

page 4

Step 4. Create "Empty Class" template


In main menu, select File > Export Template...

File > Export Templates


Export Template Wizard is shown:
     Choose Template Type window:
          Select "Item template" radio button
          From which project would you like to create a template? "LANDIS-II Project Template" should shown in pull-down box
          Click Next button

Choose Template Type


     Select Item to Export window:
          Check the box in front of Class1.cs
          Click Next button

Select Item to Export


     Select Item References window:
          Don't check any of the listed references because we don't want any to be addedto a project with an empty class
          Click Next button 

Select Item References


     Select Template Options window:
          In Template name text box, enter "Empty Class"
          In Template description, enter "A public class with no members and no references"
          Make sure Automatically import the template into Visual Studio box is checked
          Click Finish

Select Template Options


Close Class1.cs text editor window (right-click tab and select Close in pop-up window)
In Solution Explorer, right-click Class1.cs and select Delete in pop-up menu
Click OK button to confirm that the file should be deleted permanently

 Delete


< Page 3 | Page 4 | Page 5 >
Document Actions