![Page 1: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/1.jpg)
By Daniel Mohl
Building F# Visual Studio 2010 Application Templates
![Page 3: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/3.jpg)
Why would you want to build an application template?
![Page 4: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/4.jpg)
First: Download and Install the VS2010 SDK
![Page 5: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/5.jpg)
5 Ea
sy S
teps
1. Setup the projects (including the VSIX proj. )
2. Create the project vstemplate metadata files
3. Setup the project collection vstemplate file
4. Compress the files and add to the VSIX proj.
5. Build the project and test your VSIX package.
![Page 6: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/6.jpg)
Once your template is ready, make it available to the masses.
Visual Studio Gallery
![Page 7: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/7.jpg)
Taki
ng C
ontr
ol w
ith IW
izar
d - You can take full control with IWizard.
- Hook in at the following points:
- Before opening any item in the editor- After project generation- After project item generation- After all tasks are complete- At the beginning of each template wizard
creation
Resources and More Info:
• http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.templatewizard.iwizard.aspx
• http://msdn.microsoft.com/en-us/library/ms185301.aspx
![Page 8: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/8.jpg)
By Daniel Mohl
Building A NuGet Package
![Page 9: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/9.jpg)
Why would you want to build a NuGet Package?
![Page 10: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/10.jpg)
5 Ea
sy S
teps
1. Create the metadata file
2. Create/populate the Lib, Content and/or Tools directories
3. Build the nupkg file with nuget.exe
4. Test the package with a local NuGet Feed
5. Upload to the NuGet package source
![Page 11: Improving Productivity with Custom F# Project Templates and NuGet Packages](https://reader037.vdocument.in/reader037/viewer/2022103114/554f8d25b4c905435d8b4e76/html5/thumbnails/11.jpg)
Once your package is ready, make it available to the masses.
NuGet Gallery