Common.targets 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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)' == 'Debug40|AnyCPU' ">
  32. <BuildConfig>Debug</BuildConfig>
  33. <BuildTarget>40</BuildTarget>
  34. </PropertyGroup>
  35. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release40|AnyCPU' ">
  36. <BuildConfig>Release</BuildConfig>
  37. <BuildTarget>40</BuildTarget>
  38. </PropertyGroup>
  39. <!--
  40. ***********************
  41. * Legacy Platforms *
  42. ***********************
  43. -->
  44. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug35|AnyCPU' ">
  45. <BuildConfig>Debug</BuildConfig>
  46. <BuildTarget>35</BuildTarget>
  47. </PropertyGroup>
  48. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release35|AnyCPU' ">
  49. <BuildConfig>Release</BuildConfig>
  50. <BuildTarget>35</BuildTarget>
  51. </PropertyGroup>
  52. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugSL5|AnyCPU' ">
  53. <BuildConfig>Debug</BuildConfig>
  54. <BuildTarget>SL5</BuildTarget>
  55. </PropertyGroup>
  56. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseSL5|AnyCPU' ">
  57. <BuildConfig>Release</BuildConfig>
  58. <BuildTarget>SL5</BuildTarget>
  59. </PropertyGroup>
  60. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWP7|AnyCPU' ">
  61. <BuildConfig>Debug</BuildConfig>
  62. <BuildTarget>WP7</BuildTarget>
  63. </PropertyGroup>
  64. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWP7|AnyCPU' ">
  65. <BuildConfig>Release</BuildConfig>
  66. <BuildTarget>WP7</BuildTarget>
  67. </PropertyGroup>
  68. <!-- Build properties for each platform, independent of debug/release build -->
  69. <PropertyGroup Condition=" '$(BuildTarget)' == 'PL' ">
  70. <DefineConstants>$(DefineConstants);HAS_AWAIT</DefineConstants>
  71. <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
  72. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  73. <TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
  74. <NoStdLib>true</NoStdLib>
  75. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  76. </PropertyGroup>
  77. <PropertyGroup Condition=" '$(BuildTarget)' == '45' ">
  78. <DefineConstants>$(DefineConstants);HAS_AWAIT;HAS_APTCA</DefineConstants>
  79. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  80. <NoStdLib>true</NoStdLib>
  81. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  82. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  83. </PropertyGroup>
  84. <PropertyGroup Condition=" '$(Configuration)' == 'TestPL' ">
  85. <DefineConstants>$(DefineConstants);HAS_AWAIT;HAS_APTCA;PORTABLE</DefineConstants>
  86. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  87. <NoStdLib>true</NoStdLib>
  88. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  89. <BuildFlavor>DESKTOPCLR45</BuildFlavor>
  90. </PropertyGroup>
  91. <PropertyGroup Condition=" '$(BuildTarget)' == '40' ">
  92. <DefineConstants>$(DefineConstants);HAS_APTCA</DefineConstants>
  93. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  94. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  95. <BuildFlavor>DESKTOPCLR40</BuildFlavor>
  96. </PropertyGroup>
  97. <PropertyGroup Condition=" '$(BuildTarget)' == '35' ">
  98. <DefineConstants>$(DefineConstants);NO_VARIANCE;NO_TPL;NO_LARGEARITY;NO_RXINTERFACES;NO_ZIP;HAS_APTCA</DefineConstants>
  99. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  100. <BuildPlatform>DESKTOPCLR</BuildPlatform>
  101. <BuildFlavor>DESKTOPCLR20</BuildFlavor>
  102. </PropertyGroup>
  103. <PropertyGroup Condition=" '$(BuildTarget)' == 'SL5' ">
  104. <DefineConstants>$(DefineConstants);NO_SERIALIZABLE;NO_TPL;NO_REMOTING;NO_SEMAPHORE;NO_RXINTERFACES</DefineConstants>
  105. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  106. <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
  107. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  108. <SilverlightApplication>false</SilverlightApplication>
  109. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  110. <BuildFlavor>SILVERLIGHT5</BuildFlavor>
  111. </PropertyGroup>
  112. <PropertyGroup Condition=" '$(BuildTarget)' == 'WP7' ">
  113. <DefineConstants>$(DefineConstants);WINDOWSPHONE7;NO_TLS;NO_VARIANCE;NO_SERIALIZABLE;NO_TPL;NO_HASHSET;NO_REMOTING;NO_SEMAPHORE;NO_LARGEARITY;NO_ZIP</DefineConstants>
  114. <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
  115. <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
  116. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  117. <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
  118. <SilverlightApplication>false</SilverlightApplication>
  119. <BuildPlatform>SILVERLIGHT</BuildPlatform>
  120. <BuildFlavor>SILVERLIGHTM7</BuildFlavor>
  121. </PropertyGroup>
  122. <!--
  123. ********************
  124. * GENERAL SETTINGS *
  125. ********************
  126. -->
  127. <!-- All configurations -->
  128. <PropertyGroup>
  129. <DefineConstants>$(DefineConstants);$(BuildPlatform);$(BuildFlavor);TRACE</DefineConstants>
  130. <OutputPath>..\bin\$(BuildConfig)$(BuildTarget)</OutputPath>
  131. <ErrorReport>prompt</ErrorReport>
  132. <WarningLevel>4</WarningLevel>
  133. <NoWarn>1591</NoWarn>
  134. <Prefer32Bit>false</Prefer32Bit>
  135. </PropertyGroup>
  136. <!-- Debug configurations -->
  137. <PropertyGroup Condition=" '$(BuildConfig)' == 'Debug' ">
  138. <DebugSymbols>true</DebugSymbols>
  139. <DebugType>full</DebugType>
  140. <Optimize>false</Optimize>
  141. <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
  142. </PropertyGroup>
  143. <!-- Release configurations -->
  144. <PropertyGroup Condition=" '$(BuildConfig)' == 'Release' ">
  145. <DebugType>pdbonly</DebugType>
  146. <Optimize>true</Optimize>
  147. </PropertyGroup>
  148. <PropertyGroup Condition=" '$(NoOpt)' == '1' ">
  149. <DefineConstants>$(DefineConstants);NO_PERF</DefineConstants>
  150. </PropertyGroup>
  151. <ItemGroup Condition=" '$(NoStdLib)' == 'true' ">
  152. <Reference Include="mscorlib" />
  153. </ItemGroup>
  154. <ItemGroup Condition=" '$(BuildPlatform)' == 'NETCF' ">
  155. <Reference Include="System.Core" />
  156. </ItemGroup>
  157. <PropertyGroup Condition=" '$(BuildLab)' == '1' ">
  158. <DefineConstants>$(DefineConstants);NO_CODECOVERAGE</DefineConstants>
  159. </PropertyGroup>
  160. <PropertyGroup Condition=" '$(ProductSignAssembly)' == 'true' AND '$(Sign)' == 'Sign' ">
  161. <DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
  162. <AssemblyOriginatorKeyFile>..\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
  163. <SignKeyId>72</SignKeyId>
  164. <SignAssembly>true</SignAssembly>
  165. <DelaySign>true</DelaySign>
  166. </PropertyGroup>
  167. <PropertyGroup>
  168. <GetReferenceAssemblyPathsDependsOn>CP_SetBuildReferencePath</GetReferenceAssemblyPathsDependsOn>
  169. </PropertyGroup>
  170. <Target Name="CP_SetBuildReferencePath">
  171. <PropertyGroup>
  172. <TargetFrameworkDirectory>$(ProjectDir)..\..\References\$(BuildFlavor)</TargetFrameworkDirectory>
  173. </PropertyGroup>
  174. </Target>
  175. </Project>