Improving Productivity with Custom F# Project Templates and NuGet Packages

1,731 views

Published on

F# already allows you to write applications with much less code and fewer bugs, but wouldn't it be nice to improve productivity even more by creating/using custom F# application (a.k.a. multi-project) templates and NuGet packages? In this talk we will discuss what goes into the creation of these templates/packages as well as approaches for distributing these productivity enhancers to the masses.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,731
On SlideShare
0
From Embeds
0
Number of Embeds
260
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Improving Productivity with Custom F# Project Templates and NuGet Packages

  1. 1. By Daniel Mohl<br />Building F# Visual Studio 2010 Application Templates<br />
  2. 2. danmohl@gmail.com<br />www.twitter.com/dmohl<br />blog.danielmohl.com<br />www.github.com/dmohl<br />
  3. 3. Why would you want to build an application template?<br />
  4. 4. First: Download and Install the VS2010 SDK<br />
  5. 5. Setup the projects (including the VSIX proj. )<br />Create the project vstemplate metadata files<br />Setup the project collection vstemplate file<br />Compress the files and add to the VSIX proj.<br />Build the project and test your VSIX package.<br />5 Easy Steps <br />
  6. 6. Visual Studio Gallery<br />Once your template is ready, make it available to the masses.<br />
  7. 7. - You can take full control with IWizard.<br /><ul><li>Hook in at the following points:
  8. 8. Before opening any item in the editor
  9. 9. After project generation
  10. 10. After project item generation
  11. 11. After all tasks are complete
  12. 12. At the beginning of each template wizard creation</li></ul>Resources and More Info: <br /><ul><li>http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.templatewizard.iwizard.aspx
  13. 13. http://msdn.microsoft.com/en-us/library/ms185301.aspx</li></ul>Taking Control with IWizard<br />
  14. 14. By Daniel Mohl<br />Building A NuGet Package<br />
  15. 15. Why would you want to build a NuGet Package?<br />
  16. 16. Create the metadata file<br />Create/populate the Lib, Content and/or Tools directories<br />Build the nupkg file with nuget.exe<br />Test the package with a local NuGet Feed<br />Upload to the NuGet package source<br />5 Easy Steps <br />
  17. 17. NuGet Gallery<br />Once your package is ready, make it available to the masses.<br />
  18. 18. dmohl@yahoo.com<br />www.twitter.com/dmohl<br />blog.danielmohl.com<br />www.github.com/dmohl<br />

×