Reimporting the fixed template
In the previous exercise, we addressed a couple of custom template issues. However, we did not test the result to see whether our updates to the custom project template work. At the start of the last exercise, we deleted the template that was originally imported. All we must do now is provide Visual Studio our updated version. So, let's see how this is done, as follows:
- Back in Windows Explorer, copy the
WPF Console Starter Fixed.zip
file created in the previous exercise. Paste that copied file into theVisual C#
folder located within theProjectTemplates
folder at this path:C:\Users\<your username>\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#
Keeping templates organized
Note that previously, Visual Studio auto-imported our project template file to the
ProjectTemplates
directory. We could have placed our updated file in that directory and it would have worked just fine. However, you can also take advantage of the...