Skip to content

Instantly share code, notes, and snippets.

@meganehouser
Created October 29, 2013 07:58
Show Gist options
  • Save meganehouser/7210627 to your computer and use it in GitHub Desktop.
Save meganehouser/7210627 to your computer and use it in GitHub Desktop.
WindowsでWatchDogを使って、.csファイルを監視。 C#プロジェクトの自動ビルド、ユニットテストを行う。
set nunit_dir=(NUnitのインストールフォルダ)
set msbuild_dir=c:\Windows\Microsoft.NET\Framework\v4.0.30319
set target=(csprojのパス)
set testdll=(テストプロジェクトのDLLのパス)
watchmedo shell-command --patterns="*.cs" --recursive --wait --command="%msbuild_dir%\MSBuild.exe %target% & %nunit_dir%\nunit-console.exe %testdll% /nologo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment