これは非常に簡単に作成できるスクリプトのように聞こえます。バッチファイルでも次のことができます。
msbuild \ path \ to \ first.sln /p:Configuration=Release
msbuild \ path \ to \ second.sln /p:Configuration=Release
msbuild \ path \ to \ third.sln /p:Configuration=Release
msbuild \ path \ to \ fourth.sln / p:Configuration = Release
デプロイを呼び出す
もちろん、CruiseControl.NETなどのサーバーを実行して、ビルドのステータスと履歴にWebインターフェイスを提供することをお勧めします。
MS Buildには、呼び出し元の2つの主要なコントロールポイントがあります。ターゲットとそのプロパティです。ターゲットは、コンパイル、リソース、コンパイル、展開などの対象です。プロパティは、そのターゲットの構築方法を制御します。
Configurationプロパティを使用して構成を制御できます(上記を参照)。*。*projファイルを開くと、PropertyGroup
要素に気付くでしょう。これらは、/p
argを使用してコマンドラインから設定できます。
2つの引数の仕様は次のとおりです。
/target:<targets> Build these targets in this project. Use a semicolon or a
comma to separate multiple targets, or specify each
target separately. (Short form: /t)
Example:
/target:Resources;Compile
/property:<n>=<v> Set or override these project-level properties. <n> is
the property name, and <v> is the property value. Use a
semicolon or a comma to separate multiple properties, or
specify each property separately. (Short form: /p)
Example:
/property:WarningLevel=2;OutDir=bin\Debug\