プロジェクトが毎回ビルドされた後に実行する必要がある実行可能ファイルを追加するnugetパッケージがあります。
次のように各プロジェクトファイルにセクションを追加することで、これを手動で追加できます。
<Target Name="AfterBuild">
<PropertyGroup>
<PathToOutputExe>..\bin\Executable.exe</PathToOutputExe>
<PathToOutputJs>"$(MSBuildProjectDirectory)\Scripts\Output.js"</PathToOutputJs>
<DirectoryOfAssemblies>"$(MSBuildProjectDirectory)\bin\"</DirectoryOfAssemblies>
</PropertyGroup>
<AspNetCompiler Condition="'$(MvcBuildViews)'=='true'" VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
<Exec Command="$(PathToOutputExe) $(PathToOutputJs) $(DirectoryOfAssemblies)" />
</Target>
nugetパッケージをインストールするときに、これをプロジェクトに追加するにはどうすればよいですか?(つまり、Install.ps1ファイルのDTE $ projectオブジェクトを使用します)
これについての助けをいただければ幸いです。
ありがとう
リチャード