2010/01/10
[PSv2]モジュールの開発時に便利なビルドイベント
こんなビルドイベントはいかがでしょうか?
copy "$(TargetPath)" C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSTweets\ start powershell -NoExit -command "Import-Module PSTweets"
PSプロバイダやコマンドレットが含まれるdll(PSモジュール)をモジュールフォルダにコピーし、モジュールを読み込んだ状態でPowerShellを起動してくれます。ただし、systemフォルダに書き込む手順があるのでVisual Studioは管理者権限で起動してください。
元記事:http://blogs.wankuma.com/mutaguchi/archive/2010/01/10/184828.aspxプライバシーポリシー