同じファイルが宛先に既に存在する場合、展開ツールが自動的に「.update」拡張子を追加するプロジェクトに取り組んでいます。例えば
root
web.config
web.config.update
connection.config
connection.config.update
PowerShell を介して次のデプロイ後処理を実行したいと思います。
- *.config をバックアップします。
既存の *.config を *.update ファイルに置き換えます。以下は、目的の出力です。
ルート web.config web.config.update connection.config connection.config.update ルート web.config connection.config バックアップ web.config connection.config
誰かがpowershellを使用して上記を達成する方法を教えてください。