开发者

One Build - multiple outputs (64/32 Bit )

One of projects in our solution references a third party .NET C++ assembly which exists as 64 and 32 bit version. As we wanna provide our application for 32 & 64 bit systems we currently start two Builds (TFS 2008/Team Build) while each build is given a different value for property "PlatformTarget" which decides whether to reference the 64 or 32 Bit C++ assembly (all other projects are C# Code). Is there a best practice how to customize a BuildType so we get a 64/32 Bit Version by just one Build, i.e. compile a 64/32 Bit Versi开发者_如何学JAVAon in one Build?

Thanks in advance.


Found out: All you got to do is to create an BuildConfig in the solutions file (which is inherited to the projects (csproj)) and use those in the BuidlType-definition (TFSBuild.proj)

<ConfigurationToBuild Include="Release32|x86">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>x86</PlatformToBuild>
</ConfigurationToBuild>

<ConfigurationToBuild Include="Release64|x64">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>x64</PlatformToBuild>
</ConfigurationToBuild>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜