質問

いて構築するように投資を維持しながら、生産性を高TeamBuild.いい物件からのMSBuildが行う各プロジェクトのTFSBuild.proj.

例:

TFSBuild.proj

<PropertyGroup>
   <Version>0.0.0.0</Version>
</PropertyGroup>

<Target Name="BuildNumberOverrideTarget" 
        DependsOnTargets="AfterInitializeWorkspace">

  <!--Code that loads the version from a file (removed).-->

  <PropertyGroup>
    <!--Save off the version.-->
    <Version>$(TxCompleteVersion)</Version>
</PropertyGroup>

MyWIXProjectFile.wixproj

<Target Name="BeforeBuild">
<PropertyGroup>
  <!--If Version is defined then use that.  
   Else just use all zeros to show that this is a developer built version-->
  <CurrentVersion Condition="'$(Version)' == ''" >0.0.0.0</CurrentVersion>
  <CurrentVersion Condition="'$(Version)' != ''" >$(Version)</CurrentVersion>
</PropertyGroup>
<Message Condition="'$(Version)' == ''" 
         Text="Version info is empty (i.e. a developer build).  Version set to $(CurrentVersion)"/>

</Target>

がMyWixProjectFile.wixprojが内蔵のメッセージを表示し、$(バージョン)が空白が印刷済。

あばしたプロジェクトファイルのTFSBuild.proj。

Vaccano

役に立ちましたか?

解決 2

この物件のメタデータのSolutionToBuildタグです。例えば:

  <ItemGroup>
    <SolutionToBuild Include="$(BuildProjectFolderPath)\ChangeThisOne.sln">
      <Targets></Targets>
      <Properties>Change=True</Properties>
    </SolutionToBuild>
    <SolutionToBuild Include="$(BuildProjectFolderPath)\ChangeThisToo.sln">
      <Targets></Targets>
      <Properties>Change=True</Properties>
    </SolutionToBuild>
    <SolutionToBuild Include="$(BuildProjectFolderPath)\DontChangeThis.sln">
      <Targets></Targets>
      <Properties>Don'tChange=False</Properties>
    </SolutionToBuild>
  </ItemGroup>

他のヒント

ImながらWixが見つかこんでいただけるミュージアムです。

プロパティの設定のためのWiXにMSBuild

オプション1

利用MSBuildを直接呼び出MyWIXProjectFile.wixproj、パスバージョン性

オプション2

抽出のwixに独自のselft含まれるスクリプトを使用MSBuildへ直接お電話に過に必要なすべての物件です。私のブログと完全な実施を行うことで http://blog.newagesolution.net/2008/06/how-to-use-msbuild-and-wix-to-msi.html というのがあります。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top