基本的にはテンプレートファイルとDLLを適切な場所に配置してやるだけで大丈夫です。
- https://github.com/ugaya40/Livet から最新ソースコードをClone
- 後述の
simple_installer_for_vs2017.bat
を Installer ディレクトリ内に作成 - batファイルを実行
Installer\Files\Livet.ItemTemplateExtension.dll
をC:\Windows\Microsoft.NET\assembly\GAC_MSIL\Livet.ItemTemplateExtension\v4.0_1.0.3.0__b0b1d3f711ef38cb
ディレクトリ内に配置(ディレクトリがなければ作成)
@echo off
cd %~d0%~p0
@echo on
echo copy snippets
xcopy /I /Y .\Files\Snippets\*_CSharp.* "%UserProfile%\Documents\Visual Studio 2017\Code Snippets\Visual C#\My Code Snippets\Livet"
echo project templates
call :copy_project_template_csharp Livet_WPF4.5_CSharp
echo item templates
call :copy_item_template_csharp LivetInteractionMessageAction_CSharp
call :copy_item_template_csharp LivetMessage_CSharp
call :copy_item_template_csharp LivetModel_CSharp
call :copy_item_template_csharp LivetViewModel_CSharp
call :copy_item_template_csharp LivetWindow_CSharp
echo simple install completed!!!
pause
:copy_project_template_csharp
xcopy /I /E /Y .\Files\Templates\%1 "%UserProfile%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\%1"
exit /b
:copy_item_template_csharp
xcopy /I /E /Y .\Files\Templates\%1 "%UserProfile%\Documents\Visual Studio 2017\Templates\ItemTemplates\Visual C#\%1"
exit /b