Common.targets 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. <ProductVersion>8.0.30703</ProductVersion>
  6. <SchemaVersion>2.0</SchemaVersion>
  7. <TargetFrameworkProfile />
  8. </PropertyGroup>
  9. <!--
  10. ***********************
  11. * SUPPORTED PLATFORMS *
  12. ***********************
  13. -->
  14. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugPL|AnyCPU' ">
  15. <BuildConfig>Debug</BuildConfig>
  16. <BuildTarget>PL</BuildTarget>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleasePL|AnyCPU' ">
  19. <BuildConfig>Release</BuildConfig>
  20. <BuildTarget>PL</BuildTarget>
  21. </PropertyGroup>
  22. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug45|AnyCPU' ">
  23. <BuildConfig>Debug</BuildConfig>
  24. <BuildTarget>45</BuildTarget>
  25. </PropertyGroup>
  26. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release45|AnyCPU' ">
  27. <BuildConfig>Release</BuildConfig>
  28. <BuildTarget>45</BuildTarget>
  29. </PropertyGroup>
  30. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug8|AnyCPU' ">
  31. <BuildConfig>Debug</BuildConfig>
  32. <BuildTarget>8</BuildTarget>
  33. </PropertyGroup>
  34. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release8|AnyCPU' ">
  35. <BuildConfig>Release</BuildConfig>
  36. <BuildTarget>8</BuildTarget>
  37. </PropertyGroup>
  38. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug40|AnyCPU' ">
  39. <BuildConfig>Debug</BuildConfig>
  40. <BuildTarget>40</BuildTarget>
  41. </PropertyGroup>
  42. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release40|AnyCPU' ">
  43. <BuildConfig>Release</BuildConfig>
  44. <BuildTarget>40</BuildTarget>
  45. </PropertyGroup>
  46. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL5|AnyCPU' ">
  47. <BuildConfig>Debug</BuildConfig>
  48. <BuildTarget>SL5</BuildTarget>
  49. </PropertyGroup>
  50. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL5|AnyCPU' ">
  51. <BuildConfig>Release</BuildConfig>
  52. <BuildTarget>SL5</BuildTarget>
  53. </PropertyGroup>
  54. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP7|AnyCPU' ">
  55. <BuildConfig>Debug</BuildConfig>
  56. <BuildTarget>WP7</BuildTarget>
  57. </PropertyGroup>
  58. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP7|AnyCPU' ">
  59. <BuildConfig>Release</BuildConfig>
  60. <BuildTarget>WP7</BuildTarget>
  61. </PropertyGroup>
  62. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP8|AnyCPU' ">
  63. <BuildConfig>Debug</BuildConfig>
  64. <BuildTarget>WP8</BuildTarget>
  65. </PropertyGroup>
  66. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP8|AnyCPU' ">
  67. <BuildConfig>Release</BuildConfig>
  68. <BuildTarget>WP8</BuildTarget>
  69. </PropertyGroup>
  70. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugXBLV|AnyCPU' ">
  71. <BuildConfig>Debug</BuildConfig>
  72. <BuildTarget>XBLV</BuildTarget>
  73. </PropertyGroup>
  74. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseXBLV|AnyCPU' ">
  75. <BuildConfig>Release</BuildConfig>
  76. <BuildTarget>XBLV</BuildTarget>
  77. </PropertyGroup>
  78. <PropertyGroup Condition=" '$(BuildTarget)' == 'PL' ">
  79. <DefineConstants>$(DefineConstants);NO_EVENTARGS_CONSTRAINT;HAS_EDI;HAS_WINRT;HAS_PROGRESS;PREFER_ASYNC;HAS_AWAIT;HAS_APTCA;NO_REMOTING;NO_SERIALIZABLE;NO_THREAD;CRIPPLED_REFLECTION;PLIB</DefineConstants>
  80. <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
  81. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  82. <TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
  83. <NoStdLib>true</NoStdLib>
  84. <SignKeyEnhanced>true</SignKeyEnhanced>
  85. </PropertyGroup>
  86. <PropertyGroup Condition=" '$(BuildTarget)' == '45' ">
  87. <DefineConstants>$(DefineConstants);NO_EVENTARGS_CONSTRAINT;HAS_EDI;HAS_WINRT;HAS_PROGRESS;PREFER_ASYNC;HAS_AWAIT;HAS_APTCA; HAS_DISPATCHER_PRIORITY;HAS_WINFORMS</DefineConstants>
  88. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  89. <NoStdLib>true</NoStdLib>
  90. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  91. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  92. <SignKeyEnhanced>true</SignKeyEnhanced>
  93. </PropertyGroup>
  94. <PropertyGroup Condition=" '$(BuildTarget)' == '8' ">
  95. <DefineConstants>$(DefineConstants);NO_EVENTARGS_CONSTRAINT;HAS_EDI;HAS_WINRT;HAS_PROGRESS;PREFER_ASYNC;HAS_AWAIT; NO_REMOTING;NO_SERIALIZABLE;NO_THREAD;CRIPPLED_REFLECTION</DefineConstants>
  96. <TargetFrameworkIdentifier>.NETCore</TargetFrameworkIdentifier>
  97. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  98. <NoStdLib>true</NoStdLib>
  99. <BuildPlatform>WINDOWS</BuildPlatform>
  100. <BuildFlavor>WINDOWS8</BuildFlavor>
  101. <DefaultLanguage>en-US</DefaultLanguage>
  102. <SignKeyEnhanced>true</SignKeyEnhanced>
  103. </PropertyGroup>
  104. <PropertyGroup Condition=" '$(BuildTarget)' == '40' ">
  105. <DefineConstants>$(DefineConstants);NO_TASK_DELAY;HAS_APTCA;HAS_WINFORMS</DefineConstants>
  106. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  107. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  108. <BuildFlavor>DESKTOPCLR40</BuildFlavor>
  109. </PropertyGroup>
  110. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL5' ">
  111. <DefineConstants>$(DefineConstants);NO_RXINTERFACES;USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_SEMAPHORE;NO_STOPWATCH;NO_CDS;NO_TASK_DELAY</DefineConstants>
  112. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  113. <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
  114. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  115. <SilverlightApplication>false</SilverlightApplication>
  116. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  117. <BuildFlavor>SILVERLIGHT5</BuildFlavor>
  118. </PropertyGroup>
  119. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP7' ">
  120. <DefineConstants>$(DefineConstants);USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_CDS;NO_TLS;NO_VARIANCE;NO_TPL;NO_HASHSET;NO_SEMAPHORE;NO_LARGEARITY;NO_EXPRESSIONVISITOR;NO_LAZY;NO_WEAKTABLE;NO_INTERLOCKED_64;WINDOWSPHONE7</DefineConstants>
  121. <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  122. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  123. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  124. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  125. <SilverlightApplication>false</SilverlightApplication>
  126. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  127. <BuildFlavor>SILVERLIGHTM7</BuildFlavor>
  128. </PropertyGroup>
  129. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP8' ">
  130. <DefineConstants>$(DefineConstants);USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_CDS_COLLECTIONS</DefineConstants>
  131. <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
  132. <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
  133. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  134. <SilverlightApplication>false</SilverlightApplication>
  135. <BuildPlatform>WINDOWS_PHONE</BuildPlatform>
  136. <BuildFlavor>WINDOWS_PHONE8</BuildFlavor>
  137. <NoStdLib>true</NoStdLib>
  138. <SignKeyEnhanced>true</SignKeyEnhanced>
  139. </PropertyGroup>
  140. <PropertyGroup Condition=" '$(BuildTarget)' == 'XBLV' ">
  141. <DefineConstants>$(DefineConstants);NO_RXINTERFACES;USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_SEMAPHORE;NO_STOPWATCH;NO_CDS;NO_TPL;NO_LAZY;NO_WEAKTABLE;NO_VARIANCE;NO_HASHSET;NO_LARGEARITY;NO_EXPRESSIONVISITOR;NO_EXPRESSIONS</DefineConstants>
  142. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  143. <TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
  144. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  145. <SilverlightApplication>false</SilverlightApplication>
  146. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  147. <BuildFlavor>XBOX_LAKEVIEW</BuildFlavor>
  148. </PropertyGroup>
  149. <!--
  150. ********************
  151. * LEGACY PLATFORMS *
  152. ********************
  153. -->
  154. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug35|AnyCPU' ">
  155. <BuildConfig>Debug</BuildConfig>
  156. <BuildTarget>35</BuildTarget>
  157. </PropertyGroup>
  158. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release35|AnyCPU' ">
  159. <BuildConfig>Release</BuildConfig>
  160. <BuildTarget>35</BuildTarget>
  161. </PropertyGroup>
  162. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL3|AnyCPU' ">
  163. <BuildConfig>Debug</BuildConfig>
  164. <BuildTarget>SL3</BuildTarget>
  165. </PropertyGroup>
  166. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL3|AnyCPU' ">
  167. <BuildConfig>Release</BuildConfig>
  168. <BuildTarget>SL3</BuildTarget>
  169. </PropertyGroup>
  170. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL4|AnyCPU' ">
  171. <BuildConfig>Debug</BuildConfig>
  172. <BuildTarget>SL4</BuildTarget>
  173. </PropertyGroup>
  174. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL4|AnyCPU' ">
  175. <BuildConfig>Release</BuildConfig>
  176. <BuildTarget>SL4</BuildTarget>
  177. </PropertyGroup>
  178. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugXNA4|AnyCPU' ">
  179. <BuildConfig>Debug</BuildConfig>
  180. <BuildTarget>XNA4</BuildTarget>
  181. </PropertyGroup>
  182. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseXNA4|AnyCPU' ">
  183. <BuildConfig>Release</BuildConfig>
  184. <BuildTarget>XNA4</BuildTarget>
  185. </PropertyGroup>
  186. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugCF35|AnyCPU' ">
  187. <BuildConfig>Debug</BuildConfig>
  188. <BuildTarget>CF35</BuildTarget>
  189. </PropertyGroup>
  190. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseCF35|AnyCPU' ">
  191. <BuildConfig>Release</BuildConfig>
  192. <BuildTarget>CF35</BuildTarget>
  193. </PropertyGroup>
  194. <PropertyGroup Condition=" '$(BuildTarget)' == '35' ">
  195. <DefineConstants>$(DefineConstants);NO_RXINTERFACES;NO_VARIANCE;NO_TPL;NO_LARGEARITY;NO_EXPRESSIONVISITOR;NO_CDS;NO_LAZY;NO_WEAKTABLE;HAS_APTCA</DefineConstants>
  196. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  197. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  198. <BuildFlavor>DESKTOPCLR20</BuildFlavor>
  199. </PropertyGroup>
  200. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL3' ">
  201. <DefineConstants>$(DefineConstants);NO_RXINTERFACES;USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_SEMAPHORE;NO_STOPWATCH;NO_CDS;NO_TPL;NO_LAZY;NO_WEAKTABLE;NO_VARIANCE;NO_HASHSET;NO_LARGEARITY;NO_EXPRESSIONVISITOR</DefineConstants>
  202. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  203. <TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
  204. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  205. <SilverlightApplication>false</SilverlightApplication>
  206. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  207. <BuildFlavor>SILVERLIGHT3</BuildFlavor>
  208. </PropertyGroup>
  209. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL4' ">
  210. <DefineConstants>$(DefineConstants);NO_RXINTERFACES;USE_SL_DISPATCHER;NO_SERIALIZABLE;NO_REMOTING;NO_SEMAPHORE;NO_STOPWATCH;NO_CDS;NO_TPL</DefineConstants>
  211. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  212. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  213. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  214. <SilverlightApplication>false</SilverlightApplication>
  215. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  216. <BuildFlavor>SILVERLIGHT4</BuildFlavor>
  217. </PropertyGroup>
  218. <PropertyGroup Condition=" '$(BuildTarget)' == 'XNA4' ">
  219. <DefineConstants>$(DefineConstants);NO_VARIANCE;NO_LARGEARITY;NO_SERIALIZABLE;NO_TPL;NO_SEMAPHORE;NO_HASHSET;NO_RXINTERFACES;NO_REMOTING;NO_EXPRESSIONVISITOR;NO_CDS;NO_LAZY;NO_EXPRESSIONS;NO_WEAKTABLE;NO_DEBUGGER_ATTRIBUTES;USE_SLEEP_MS;NO_INTERLOCKED_64</DefineConstants>
  220. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  221. <XnaFrameworkVersion>v4.0</XnaFrameworkVersion>
  222. <XnaPlatform>Xbox 360</XnaPlatform>
  223. <NoStdLib>true</NoStdLib>
  224. <BuildPlatform>XNA</BuildPlatform>
  225. <BuildFlavor>XNA4</BuildFlavor>
  226. </PropertyGroup>
  227. <PropertyGroup Condition=" '$(BuildTarget)' == 'CF35' ">
  228. <DefineConstants>$(DefineConstants);NO_VARIANCE;NO_TPL;NO_LARGEARITY;NO_RXINTERFACES;NO_EXPRESSIONVISITOR;NO_CDS;NO_EXPRESSIONS;NO_HASHSET;NO_SEMAPHORE;NO_DATETIMEOFFSET;NO_ASSEMBLYFILEVERSIONATTRIBUTE;NO_SYNCCTX;NO_TLS;NO_LAZY;NO_REMOTING;NO_WEAKTABLE;NO_DEBUGGER_ATTRIBUTES;USE_SLEEP_MS;NO_INTERLOCKED_64</DefineConstants>
  229. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  230. <BuildPlatform>NETCF</BuildPlatform>
  231. <BuildFlavor>NETCF35</BuildFlavor>
  232. <NoStdLib>true</NoStdLib>
  233. </PropertyGroup>
  234. <PropertyGroup Condition=" '$(BuildPlatform)' == 'NETCF' ">
  235. <!-- The following seems to be required for Microsoft.CompactFramework.targets to be happy. It doesn't seem to impact generated metadata. -->
  236. <PlatformFamilyName>PocketPC</PlatformFamilyName>
  237. <PlatformID>4118C335-430C-497f-BE48-11C3316B135E</PlatformID>
  238. <OSVersion>5.1</OSVersion>
  239. <NativePlatformName>Windows Mobile 5.0 Pocket PC SDK</NativePlatformName>
  240. </PropertyGroup>
  241. <!--
  242. ********************
  243. * GENERAL SETTINGS *
  244. ********************
  245. -->
  246. <PropertyGroup>
  247. <DefineConstants>$(DefineConstants);$(BuildPlatform);$(BuildFlavor);TRACE</DefineConstants>
  248. <OutputPath>bin\$(BuildConfig)$(BuildTarget)</OutputPath>
  249. <ErrorReport>prompt</ErrorReport>
  250. <WarningLevel>4</WarningLevel>
  251. </PropertyGroup>
  252. <PropertyGroup Condition=" '$(BuildConfig)' == 'Debug' ">
  253. <DebugSymbols>true</DebugSymbols>
  254. <DebugType>full</DebugType>
  255. <Optimize>false</Optimize>
  256. <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
  257. </PropertyGroup>
  258. <PropertyGroup Condition=" '$(BuildConfig)' == 'Release' ">
  259. <DebugType>pdbonly</DebugType>
  260. <Optimize>true</Optimize>
  261. </PropertyGroup>
  262. <PropertyGroup Condition=" '$(NoOpt)' == '1' ">
  263. <DefineConstants>$(DefineConstants);NO_PERF</DefineConstants>
  264. </PropertyGroup>
  265. <ItemGroup Condition=" '$(NoStdLib)' == 'true' ">
  266. <Reference Include="mscorlib" />
  267. </ItemGroup>
  268. <ItemGroup Condition=" '$(BuildPlatform)' == 'NETCF' ">
  269. <Reference Include="System.Core" />
  270. </ItemGroup>
  271. <!-- Temporary flag to enable stress test builds. Should be refactored into a separate project and be written in a more platform-neutral manner. (TFS 484720) -->
  272. <PropertyGroup Condition=" '$(BuildFlavor)' == 'DESKTOPCLR40' OR '$(BuildFlavor)' == 'DESKTOPCLR45' ">
  273. <DefineConstants>$(DefineConstants);STRESS</DefineConstants>
  274. </PropertyGroup>
  275. <PropertyGroup Condition=" '$(ProductSignAssembly)' == 'true' AND '$(SignedBuild)' == '1' ">
  276. <DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
  277. <SignAssembly>true</SignAssembly>
  278. <DelaySign>true</DelaySign>
  279. </PropertyGroup>
  280. <PropertyGroup Condition=" '$(SignAssembly)' == 'true' AND '$(SignKeyEnhanced)' != 'true' ">
  281. <AssemblyOriginatorKeyFile>..\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
  282. <SignKeyId>72</SignKeyId>
  283. </PropertyGroup>
  284. <PropertyGroup Condition=" '$(SignAssembly)' == 'true' AND '$(SignKeyEnhanced)' == 'true' ">
  285. <AssemblyOriginatorKeyFile>..\272MSSharedLibSN2048.snk</AssemblyOriginatorKeyFile>
  286. <DefineConstants>$(DefineConstants);SIGNENHANCED</DefineConstants>
  287. <SignKeyId>272</SignKeyId>
  288. </PropertyGroup>
  289. <PropertyGroup Condition=" '$(BuildLab)' == '1' ">
  290. <DefineConstants>$(DefineConstants);NO_CODECOVERAGE</DefineConstants>
  291. </PropertyGroup>
  292. <PropertyGroup>
  293. <GetReferenceAssemblyPathsDependsOn>CP_SetBuildReferencePath</GetReferenceAssemblyPathsDependsOn>
  294. </PropertyGroup>
  295. <Target Name="CP_SetBuildReferencePath">
  296. <PropertyGroup>
  297. <TargetFrameworkDirectory>$(ProjectDir)..\..\References\$(BuildFlavor)</TargetFrameworkDirectory>
  298. </PropertyGroup>
  299. </Target>
  300. </Project>