Common.targets 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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)' == 'DebugPLLITE|AnyCPU' ">
  24. <BuildConfig>Debug</BuildConfig>
  25. <BuildTarget>PLLITE</BuildTarget>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleasePLLITE|AnyCPU' ">
  28. <BuildConfig>Release</BuildConfig>
  29. <BuildTarget>PLLITE</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)' == 'Debug81|AnyCPU' ">
  40. <BuildConfig>Debug</BuildConfig>
  41. <BuildTarget>81</BuildTarget>
  42. </PropertyGroup>
  43. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release81|AnyCPU' ">
  44. <BuildConfig>Release</BuildConfig>
  45. <BuildTarget>81</BuildTarget>
  46. </PropertyGroup>
  47. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug40|AnyCPU' ">
  48. <BuildConfig>Debug</BuildConfig>
  49. <BuildTarget>40</BuildTarget>
  50. </PropertyGroup>
  51. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release40|AnyCPU' ">
  52. <BuildConfig>Release</BuildConfig>
  53. <BuildTarget>40</BuildTarget>
  54. </PropertyGroup>
  55. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug45|AnyCPU' ">
  56. <BuildConfig>Debug</BuildConfig>
  57. <BuildTarget>45</BuildTarget>
  58. </PropertyGroup>
  59. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release45|AnyCPU' ">
  60. <BuildConfig>Release</BuildConfig>
  61. <BuildTarget>45</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. <!--
  72. ***********************
  73. * Legacy Platforms *
  74. ***********************
  75. -->
  76. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug35|AnyCPU' ">
  77. <BuildConfig>Debug</BuildConfig>
  78. <BuildTarget>35</BuildTarget>
  79. </PropertyGroup>
  80. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release35|AnyCPU' ">
  81. <BuildConfig>Release</BuildConfig>
  82. <BuildTarget>35</BuildTarget>
  83. </PropertyGroup>
  84. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL5|AnyCPU' ">
  85. <BuildConfig>Debug</BuildConfig>
  86. <BuildTarget>SL5</BuildTarget>
  87. </PropertyGroup>
  88. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL5|AnyCPU' ">
  89. <BuildConfig>Release</BuildConfig>
  90. <BuildTarget>SL5</BuildTarget>
  91. </PropertyGroup>
  92. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP7|AnyCPU' ">
  93. <BuildConfig>Debug</BuildConfig>
  94. <BuildTarget>WP7</BuildTarget>
  95. </PropertyGroup>
  96. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP7|AnyCPU' ">
  97. <BuildConfig>Release</BuildConfig>
  98. <BuildTarget>WP7</BuildTarget>
  99. </PropertyGroup>
  100. <!-- Build properties for each platform, independent of debug/release build -->
  101. <PropertyGroup Condition=" '$(BuildTarget)' == 'PL' ">
  102. <DefineConstants>$(DefineConstants);HAS_AWAIT</DefineConstants>
  103. <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
  104. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  105. <TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
  106. <NoStdLib>true</NoStdLib>
  107. </PropertyGroup>
  108. <PropertyGroup Condition=" '$(BuildTarget)' == 'PLITE' ">
  109. <DefineConstants>$(DefineConstants);HAS_AWAIT</DefineConstants>
  110. <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
  111. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  112. <TargetFrameworkProfile>Profile136</TargetFrameworkProfile>
  113. <NoStdLib>true</NoStdLib>
  114. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  115. </PropertyGroup>
  116. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP7' ">
  117. <DefineConstants>$(DefineConstants);WINDOWSPHONE7;NO_TLS;NO_VARIANCE;NO_SERIALIZABLE;NO_TPL;NO_HASHSET;NO_REMOTING;NO_SEMAPHORE;NO_LARGEARITY;NO_ZIP</DefineConstants>
  118. <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  119. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  120. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  121. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  122. <SilverlightApplication>false</SilverlightApplication>
  123. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  124. <BuildFlavor>SILVERLIGHTM7</BuildFlavor>
  125. </PropertyGroup>
  126. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP8' ">
  127. <DefineConstants>$(DefineConstants);HAS_EDI;HAS_PROGRESS;PREFER_ASYNC;HAS_AWAIT;NO_EVENTARGS_CONSTRAINT;USE_SL_DISPATCHER;HAS_WINRT;NO_SERIALIZABLE;NO_REMOTING;NO_CDS_COLLECTIONS;USE_TIMER_SELF_ROOT</DefineConstants>
  128. <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
  129. <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
  130. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  131. <SilverlightApplication>false</SilverlightApplication>
  132. <BuildPlatform>WINDOWS_PHONE</BuildPlatform>
  133. <BuildFlavor>WINDOWS_PHONE8</BuildFlavor>
  134. <NoStdLib>true</NoStdLib>
  135. </PropertyGroup>
  136. <PropertyGroup Condition=" '$(BuildTarget)' == '40' ">
  137. <DefineConstants>$(DefineConstants);HAS_APTCA</DefineConstants>
  138. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  139. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  140. <BuildFlavor>DESKTOPCLR40</BuildFlavor>
  141. </PropertyGroup>
  142. <PropertyGroup Condition=" '$(BuildTarget)' == '45' ">
  143. <DefineConstants>$(DefineConstants);HAS_AWAIT;HAS_APTCA</DefineConstants>
  144. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  145. <NoStdLib>true</NoStdLib>
  146. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  147. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  148. </PropertyGroup>
  149. <PropertyGroup Condition=" '$(Configuration)' == 'TestPL' ">
  150. <DefineConstants>$(DefineConstants);HAS_AWAIT;HAS_APTCA;PORTABLE</DefineConstants>
  151. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  152. <NoStdLib>true</NoStdLib>
  153. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  154. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  155. </PropertyGroup>
  156. <PropertyGroup Condition=" '$(BuildTarget)' == '35' ">
  157. <DefineConstants>$(DefineConstants);NO_VARIANCE;NO_TPL;NO_LARGEARITY;NO_RXINTERFACES;NO_ZIP;HAS_APTCA</DefineConstants>
  158. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  159. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  160. <BuildFlavor>DESKTOPCLR20</BuildFlavor>
  161. </PropertyGroup>
  162. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL5' ">
  163. <DefineConstants>$(DefineConstants);NO_SERIALIZABLE;NO_TPL;NO_REMOTING;NO_SEMAPHORE;NO_RXINTERFACES</DefineConstants>
  164. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  165. <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
  166. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  167. <SilverlightApplication>false</SilverlightApplication>
  168. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  169. <BuildFlavor>SILVERLIGHT5</BuildFlavor>
  170. </PropertyGroup>
  171. <!--
  172. ********************
  173. * GENERAL SETTINGS *
  174. ********************
  175. -->
  176. <!-- All configurations -->
  177. <PropertyGroup>
  178. <DefineConstants>$(DefineConstants);$(BuildPlatform);$(BuildFlavor);TRACE</DefineConstants>
  179. <OutputPath>..\bin\$(BuildConfig)$(BuildTarget)</OutputPath>
  180. <ErrorReport>prompt</ErrorReport>
  181. <WarningLevel>4</WarningLevel>
  182. <NoWarn>1591</NoWarn>
  183. <Prefer32Bit>false</Prefer32Bit>
  184. </PropertyGroup>
  185. <!-- Debug configurations -->
  186. <PropertyGroup Condition=" '$(BuildConfig)' == 'Debug' ">
  187. <DebugSymbols>true</DebugSymbols>
  188. <DebugType>full</DebugType>
  189. <Optimize>false</Optimize>
  190. <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
  191. </PropertyGroup>
  192. <!-- Release configurations -->
  193. <PropertyGroup Condition=" '$(BuildConfig)' == 'Release' ">
  194. <DebugType>pdbonly</DebugType>
  195. <Optimize>true</Optimize>
  196. </PropertyGroup>
  197. <PropertyGroup Condition=" '$(NoOpt)' == '1' ">
  198. <DefineConstants>$(DefineConstants);NO_PERF</DefineConstants>
  199. </PropertyGroup>
  200. <ItemGroup Condition=" '$(NoStdLib)' == 'true' ">
  201. <Reference Include="mscorlib" />
  202. </ItemGroup>
  203. <ItemGroup Condition=" '$(BuildPlatform)' == 'NETCF' ">
  204. <Reference Include="System.Core" />
  205. </ItemGroup>
  206. <PropertyGroup Condition=" '$(BuildLab)' == '1' ">
  207. <DefineConstants>$(DefineConstants);NO_CODECOVERAGE</DefineConstants>
  208. </PropertyGroup>
  209. <PropertyGroup Condition=" '$(ProductSignAssembly)' == 'true' AND '$(Sign)' == 'Sign' ">
  210. <DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
  211. <AssemblyOriginatorKeyFile>..\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
  212. <SignKeyId>72</SignKeyId>
  213. <SignAssembly>true</SignAssembly>
  214. <DelaySign>true</DelaySign>
  215. </PropertyGroup>
  216. <!--
  217. ************************************************
  218. * GENERAL REFERENCES - Microsoft.Bcl and Async *
  219. ************************************************
  220. -->
  221. <ItemGroup Condition=" '$(BuildTarget)' == 'PLLITE' ">
  222. <!--- Microsoft.Bcl References -->
  223. <Reference Include="System.Runtime">
  224. <HintPath>..\packages\Microsoft.Bcl.1.0.19\lib\portable-net40+sl5+win8+wp8\System.Runtime.dll</HintPath>
  225. <Private>False</Private>
  226. </Reference>
  227. <Reference Include="System.Threading.Tasks">
  228. <HintPath>..\packages\Microsoft.Bcl.1.0.19\lib\portable-net40+sl5+win8+wp8\System.Threading.Tasks.dll</HintPath>
  229. <Private>False</Private>
  230. </Reference>
  231. <!--- Microsoft.Bcl.Async References -->
  232. <Reference Include="Microsoft.Threading.Tasks">
  233. <HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\portable-net40+sl4+win8+wp71\Microsoft.Threading.Tasks.dll</HintPath>
  234. <Private>False</Private>
  235. </Reference>
  236. <Reference Include="Microsoft.Threading.Tasks.Extensions">
  237. <HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\portable-net40+sl4+win8+wp71\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
  238. <Private>False</Private>
  239. </Reference>
  240. </ItemGroup>
  241. <ItemGroup Condition=" '$(BuildTarget)' == '40' ">
  242. <Reference Include="Microsoft.Threading.Tasks">
  243. <HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
  244. <Private>False</Private>
  245. </Reference>
  246. <Reference Include="Microsoft.Threading.Tasks.Extensions">
  247. <HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
  248. <Private>False</Private>
  249. </Reference>
  250. <Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
  251. <HintPath>..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
  252. <Private>False</Private>
  253. </Reference>
  254. <Reference Include="System.Runtime">
  255. <HintPath>..\packages\Microsoft.Bcl.1.0.19\lib\net40\System.Runtime.dll</HintPath>
  256. <Private>False</Private>
  257. </Reference>
  258. <Reference Include="System.Threading.Tasks">
  259. <HintPath>..\packages\Microsoft.Bcl.1.0.19\lib\net40\System.Threading.Tasks.dll</HintPath>
  260. <Private>False</Private>
  261. </Reference>
  262. </ItemGroup>
  263. <PropertyGroup>
  264. <GetReferenceAssemblyPathsDependsOn>CP_SetBuildReferencePath</GetReferenceAssemblyPathsDependsOn>
  265. </PropertyGroup>
  266. <Target Name="CP_SetBuildReferencePath">
  267. <PropertyGroup>
  268. <TargetFrameworkDirectory>$(ProjectDir)..\..\References\$(BuildFlavor)</TargetFrameworkDirectory>
  269. </PropertyGroup>
  270. </Target>
  271. </Project>