Common.targets 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  5. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6. <ProductVersion>8.0.30703</ProductVersion>
  7. <SchemaVersion>2.0</SchemaVersion>
  8. <TargetFrameworkProfile />
  9. </PropertyGroup>
  10. <!--
  11. ***********************
  12. * SUPPORTED PLATFORMS *
  13. ***********************
  14. -->
  15. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugPL|AnyCPU' ">
  16. <BuildConfig>Debug</BuildConfig>
  17. <BuildTarget>PL</BuildTarget>
  18. </PropertyGroup>
  19. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleasePL|AnyCPU' ">
  20. <BuildConfig>Release</BuildConfig>
  21. <BuildTarget>PL</BuildTarget>
  22. </PropertyGroup>
  23. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug45|AnyCPU' ">
  24. <BuildConfig>Debug</BuildConfig>
  25. <BuildTarget>45</BuildTarget>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release45|AnyCPU' ">
  28. <BuildConfig>Release</BuildConfig>
  29. <BuildTarget>45</BuildTarget>
  30. </PropertyGroup>
  31. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug8|AnyCPU' ">
  32. <BuildConfig>Debug</BuildConfig>
  33. <BuildTarget>8</BuildTarget>
  34. </PropertyGroup>
  35. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release8|AnyCPU' ">
  36. <BuildConfig>Release</BuildConfig>
  37. <BuildTarget>8</BuildTarget>
  38. </PropertyGroup>
  39. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug40|AnyCPU' ">
  40. <BuildConfig>Debug</BuildConfig>
  41. <BuildTarget>40</BuildTarget>
  42. </PropertyGroup>
  43. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release40|AnyCPU' ">
  44. <BuildConfig>Release</BuildConfig>
  45. <BuildTarget>40</BuildTarget>
  46. </PropertyGroup>
  47. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL5|AnyCPU' ">
  48. <BuildConfig>Debug</BuildConfig>
  49. <BuildTarget>SL5</BuildTarget>
  50. </PropertyGroup>
  51. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL5|AnyCPU' ">
  52. <BuildConfig>Release</BuildConfig>
  53. <BuildTarget>SL5</BuildTarget>
  54. </PropertyGroup>
  55. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP7|AnyCPU' ">
  56. <BuildConfig>Debug</BuildConfig>
  57. <BuildTarget>WP7</BuildTarget>
  58. </PropertyGroup>
  59. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP7|AnyCPU' ">
  60. <BuildConfig>Release</BuildConfig>
  61. <BuildTarget>WP7</BuildTarget>
  62. </PropertyGroup>
  63. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP8|AnyCPU' ">
  64. <BuildConfig>Debug</BuildConfig>
  65. <BuildTarget>WP8</BuildTarget>
  66. </PropertyGroup>
  67. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP8|AnyCPU' ">
  68. <BuildConfig>Release</BuildConfig>
  69. <BuildTarget>WP8</BuildTarget>
  70. </PropertyGroup>
  71. <!--DM: Commented out until we understand what this configuration was for-->
  72. <!--<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugXBLV|AnyCPU' ">
  73. <BuildConfig>Debug</BuildConfig>
  74. <BuildTarget>XBLV</BuildTarget>
  75. </PropertyGroup>
  76. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseXBLV|AnyCPU' ">
  77. <BuildConfig>Release</BuildConfig>
  78. <BuildTarget>XBLV</BuildTarget>
  79. </PropertyGroup>-->
  80. <!-- Build properties for each platform, independent of debug/release build -->
  81. <PropertyGroup Condition=" '$(BuildTarget)' == 'PL' ">
  82. <DefineConstants>$(DefineConstants);HAS_AWAIT</DefineConstants>
  83. <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
  84. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  85. <TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
  86. <NoStdLib>true</NoStdLib>
  87. </PropertyGroup>
  88. <PropertyGroup Condition=" '$(BuildTarget)' == '45' ">
  89. <DefineConstants>$(DefineConstants);HAS_AWAIT;HAS_APTCA</DefineConstants>
  90. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  91. <NoStdLib>true</NoStdLib>
  92. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  93. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  94. </PropertyGroup>
  95. <!--DM: TODO - see if a win8 build target is needed for Ix-->
  96. <!--<PropertyGroup Condition=" '$(BuildTarget)' == '8' ">
  97. <DefineConstants>$(DefineConstants);HAS_AWAIT</DefineConstants>
  98. <TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
  99. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  100. <NoStdLib>true</NoStdLib>
  101. <BuildPlatform>WINDOWS</BuildPlatform>
  102. <BuildFlavor>WINDOWS8</BuildFlavor>
  103. <DefaultLanguage>en-US</DefaultLanguage>
  104. </PropertyGroup>-->
  105. <PropertyGroup Condition=" '$(BuildTarget)' == '40' ">
  106. <DefineConstants>$(DefineConstants);HAS_APTCA</DefineConstants>
  107. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  108. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  109. <BuildFlavor>DESKTOPCLR40</BuildFlavor>
  110. </PropertyGroup>
  111. <PropertyGroup Condition=" '$(BuildTarget)' == '35' ">
  112. <DefineConstants>$(DefineConstants);NO_VARIANCE;NO_TPL;NO_LARGEARITY;NO_RXINTERFACES;NO_ZIP;HAS_APTCA</DefineConstants>
  113. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  114. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  115. <BuildFlavor>DESKTOPCLR20</BuildFlavor>
  116. </PropertyGroup>
  117. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL5' ">
  118. <DefineConstants>$(DefineConstants);NO_SERIALIZABLE;NO_TPL;NO_REMOTING;NO_SEMAPHORE;NO_RXINTERFACES</DefineConstants>
  119. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  120. <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
  121. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  122. <SilverlightApplication>false</SilverlightApplication>
  123. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  124. <BuildFlavor>SILVERLIGHT5</BuildFlavor>
  125. </PropertyGroup>
  126. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP7' ">
  127. <DefineConstants>$(DefineConstants);WINDOWSPHONE7;NO_TLS;NO_VARIANCE;NO_SERIALIZABLE;NO_TPL;NO_HASHSET;NO_REMOTING;NO_SEMAPHORE;NO_LARGEARITY;NO_ZIP</DefineConstants>
  128. <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  129. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  130. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  131. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  132. <SilverlightApplication>false</SilverlightApplication>
  133. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  134. <BuildFlavor>SILVERLIGHTM7</BuildFlavor>
  135. </PropertyGroup>
  136. <!--DM: Note - there is no WP8 target, need to see if we need one-->
  137. <!--
  138. ********************
  139. * GENERAL SETTINGS *
  140. ********************
  141. -->
  142. <PropertyGroup>
  143. <DefineConstants>$(DefineConstants);$(BuildPlatform);$(BuildFlavor);TRACE</DefineConstants>
  144. <OutputPath>bin\$(BuildConfig)$(BuildTarget)</OutputPath>
  145. <ErrorReport>prompt</ErrorReport>
  146. <WarningLevel>4</WarningLevel>
  147. <NoWarn>1591</NoWarn>
  148. <Prefer32Bit>false</Prefer32Bit>
  149. </PropertyGroup>
  150. <PropertyGroup Condition=" '$(BuildConfig)' == 'Debug' ">
  151. <DebugSymbols>true</DebugSymbols>
  152. <DebugType>full</DebugType>
  153. <Optimize>false</Optimize>
  154. <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
  155. </PropertyGroup>
  156. <PropertyGroup Condition=" '$(BuildConfig)' == 'Release' ">
  157. <DebugType>pdbonly</DebugType>
  158. <Optimize>true</Optimize>
  159. </PropertyGroup>
  160. <PropertyGroup Condition=" '$(NoOpt)' == '1' ">
  161. <DefineConstants>$(DefineConstants);NO_PERF</DefineConstants>
  162. </PropertyGroup>
  163. <ItemGroup Condition=" '$(NoStdLib)' == 'true' ">
  164. <Reference Include="mscorlib" />
  165. </ItemGroup>
  166. <ItemGroup Condition=" '$(BuildPlatform)' == 'NETCF' ">
  167. <Reference Include="System.Core" />
  168. </ItemGroup>
  169. <!--<PropertyGroup Condition=" '$(ProductSignAssembly)' == 'true' AND '$(SignedBuild)' == '1' ">
  170. <DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
  171. <SignAssembly>true</SignAssembly>
  172. </PropertyGroup>-->
  173. <PropertyGroup Condition=" '$(BuildLab)' == '1' ">
  174. <DefineConstants>$(DefineConstants);NO_CODECOVERAGE</DefineConstants>
  175. </PropertyGroup>
  176. <!-- Hack to support MSTest's Unit Test Framework on Silverlight and Windows Phone.
  177. This overwrites one of the paths used by AssemblySearchPaths, which is the variable
  178. used by the ResolveAssemblyReferences task to figure out which directories to look in.
  179. Previously, Rx was replacing the TargetFrameworkDirectory to allow this to work. We can
  180. instead use the official .NET reference assemblies while simply looking for the additional
  181. unit testing framework assemblies (and a renamed Silverlight clone of the unit test framework). -->
  182. <PropertyGroup>
  183. <ReferencePath>$(MSBuildProjectDirectory)\..\References\$(BuildFlavor)</ReferencePath>
  184. </PropertyGroup>
  185. </Project>