これは非常に簡単なスクリプトのように聞こえます。でも、バッチファイルはどうなる:
もちろん
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
call deploy
、はるかに優れたサーバを実行していることであろう、ビルド状況と歴史へのWebインターフェイスを提供しますCruiseControl.NETを、言います。
MSビルドでは、呼び出し元の2つの主なコントロールポイントがあります:ターゲットとそのプロパティ。ターゲットは、コンパイル、リソース、コンパイル、デプロイメントなどを対象としています。プロパティーは、ターゲットの構築方法を制御します。
設定プロパティ(上記参照)を使用して設定を制御できます。 *。* projファイルを開くと、PropertyGroup
要素が表示されます。これらは、/p
argを使用してコマンドラインから設定できます。
/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\
ご返信ありがとうございます。しかし、私はどのように設定オプションを設定するのですか?たとえば、DEbugモードで私のアプリケーション設定projsをデバッグしますが、スクリプトは常にリリースモードでビルドする必要があります。あなたの素早い返信にもう一度感謝します。 – blntechie
詳細を追加しました。それはすべて非常にシンプルでマスタリングに値するものです。 MS Buildは**多くの**を自動化できます。 –