12
By Daniel Mohl Building F# Visual Studio 2010 Application Templates

Improving Productivity with Custom F# Project Templates and NuGet Packages

  • Upload
    dmohl

  • View
    1.472

  • Download
    1

Embed Size (px)

DESCRIPTION

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.

Citation preview

Page 1: Improving Productivity with Custom F# Project Templates and NuGet Packages

By Daniel Mohl

Building F# Visual Studio 2010 Application Templates

Page 2: Improving Productivity with Custom F# Project Templates and NuGet Packages

[email protected]

www.twitter.com/dmohl

blog.danielmohl.com

www.github.com/dmohl

Page 3: Improving Productivity with Custom F# Project Templates and NuGet Packages

Why would you want to build an application template?

Page 5: Improving Productivity with Custom F# Project Templates and NuGet Packages

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

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

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

By Daniel Mohl

Building A NuGet Package

Page 9: Improving Productivity with Custom F# Project Templates and NuGet Packages

Why would you want to build a NuGet Package?

Page 10: Improving Productivity with Custom F# Project Templates and NuGet Packages

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

Once your package is ready, make it available to the masses.

NuGet Gallery

Page 12: Improving Productivity with Custom F# Project Templates and NuGet Packages

[email protected]

www.twitter.com/dmohl

blog.danielmohl.com

www.github.com/dmohl