I am using F# and i found that the available templates were a bit to sparse for my liking, and i want to make more. How would i go about doing that? also, how would i install these templates after I've made them?
Visual-studio – Visual Studio 2010 Make and Install Templates
installationtemplatesvisual-studiovisual-studio-2010
Related Question
- Visual-studio – Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio
- Visual-studio – How to auto format code in Visual Studio
- Visual-studio – Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview
- Asp.net-mvc – Visual Studio debugging/loading very slow
- Java – How to install Java 8 on Mac
- R – How should I deal with “package ‘xxx’ is not available (for R version x.y.z)” warning
Best Solution
In Visual Studio's path you will find the default templates, these are a set of zip files that get expanded into the template cach.
They are stored in
%VSInstallDir%\Common7\IDE\ItemTemplates\
%VSInstallDir%\Common7\IDE\ProjectTemplates\
Extracting the {{.zip}} in question and recompressing with the modified contents will update the template. You can also copy these files to one of the respective template folders in
%USERPROFILE%\Documents\Visual Studio 2010
.For information on building templates have a look at Visual Studio Templates on MSDN.
You then need to tell VS to rebuild the cache.
devenv /installvstemplates
You can also use the "Export Template..." wizard from the file menu, however the exported template loses original content such as
if
statements.