System.Private.CoreLib.csproj 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <!-- Include common build properties -->
  4. <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> -->
  5. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  6. <!-- Compilation options -->
  7. <PropertyGroup>
  8. <AvailablePlatforms>x64,x86,arm,armel,arm64</AvailablePlatforms>
  9. <Configuration Condition=" '$(Configuration)' == '' ">$(BuildType)</Configuration>
  10. <Platform Condition=" '$(Platform)' == '' ">$(BuildArch)</Platform>
  11. <Platform Condition=" '$(Platform)' == 'armel' ">arm</Platform>
  12. <ProjectGuid>{DD18B4BA-3B49-437B-9E34-41EF8A640CE0}</ProjectGuid>
  13. <OutputType>Library</OutputType>
  14. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  15. <!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
  16. <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
  17. <!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
  18. <ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
  19. <NoStdLib>true</NoStdLib>
  20. <NoCompilerStandardLib>true</NoCompilerStandardLib>
  21. <SubsystemVersion>6.00</SubsystemVersion>
  22. <UTF8OutPut>true</UTF8OutPut>
  23. <HighEntropyVA>true</HighEntropyVA>
  24. <ErrorReport>prompt</ErrorReport>
  25. <CLSCompliant>true</CLSCompliant>
  26. <WarningLevel>4</WarningLevel>
  27. <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
  28. <WarningsNotAsErrors>$(WarningsNotAsErrors);618</WarningsNotAsErrors>
  29. <NoWarn>649,3019,414,169,3015,591,1573,1591,0419</NoWarn>
  30. <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
  31. <SignAssembly>true</SignAssembly>
  32. <DelaySign>true</DelaySign>
  33. <DefineConstants>$(DefineConstants);_USE_NLS_PLUS_TABLE;CODE_ANALYSIS_BASELINE;netcoreapp</DefineConstants>
  34. <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two properties to any folder that exists to skip
  35. the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). -->
  36. <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories>
  37. <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths>
  38. <SkipCommonResourcesIncludes>true</SkipCommonResourcesIncludes>
  39. <LangVersion>latest</LangVersion>
  40. <!--
  41. <DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
  42. -->
  43. </PropertyGroup>
  44. <!-- Platform specific properties -->
  45. <PropertyGroup Condition="'$(Platform)' == 'x64'">
  46. <PlatformTarget>x64</PlatformTarget>
  47. <Prefer32Bit>false</Prefer32Bit>
  48. <BaseAddress>0x180000000</BaseAddress>
  49. <DefineConstants>BIT64;AMD64;$(DefineConstants)</DefineConstants>
  50. </PropertyGroup>
  51. <PropertyGroup Condition="'$(Platform)' == 'x86'">
  52. <PlatformTarget>x86</PlatformTarget>
  53. <BaseAddress>0x10000000</BaseAddress>
  54. <DefineConstants>BIT32;$(DefineConstants)</DefineConstants>
  55. </PropertyGroup>
  56. <PropertyGroup Condition="'$(Platform)' == 'arm'">
  57. <PlatformTarget>arm</PlatformTarget>
  58. <DefineConstants>BIT32;ARM;$(DefineConstants)</DefineConstants>
  59. </PropertyGroup>
  60. <PropertyGroup Condition="'$(Platform)' == 'arm64'">
  61. <PlatformTarget>AnyCPU</PlatformTarget>
  62. <DefineConstants>BIT64;ARM64;$(DefineConstants)</DefineConstants>
  63. </PropertyGroup>
  64. <!-- Configuration specific properties -->
  65. <PropertyGroup Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">
  66. <DebugSymbols>true</DebugSymbols>
  67. <Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Debug'">false</Optimize>
  68. <Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Checked'">true</Optimize>
  69. <DebugType Condition="'$(DebugType)' == ''">full</DebugType>
  70. <DefineConstants>_LOGGING;DEBUG;TRACE;$(DefineConstants)</DefineConstants>
  71. <DefineConstants Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'x64'">CODE_ANALYSIS;$(DefineConstants)</DefineConstants>
  72. </PropertyGroup>
  73. <PropertyGroup Condition="'$(Configuration)' == 'Release'">
  74. <DebugSymbols>true</DebugSymbols>
  75. <Optimize Condition="'$(Optimize)' == ''">true</Optimize>
  76. <DebugType Condition="'$(DebugType)' == ''">pdbOnly</DebugType>
  77. <DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
  78. </PropertyGroup>
  79. <!-- Make portable PDBs on Unix -->
  80. <PropertyGroup Condition="'$(OsEnvironment)' == 'Unix'">
  81. <DebugType>portable</DebugType>
  82. </PropertyGroup>
  83. <PropertyGroup Condition="'$(TargetsOSX)' == 'true'">
  84. <DefineConstants>PLATFORM_OSX;$(DefineConstants)</DefineConstants>
  85. </PropertyGroup>
  86. <!-- Assembly attributes -->
  87. <PropertyGroup>
  88. <AssemblyName>System.Private.CoreLib</AssemblyName>
  89. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  90. <MajorVersion>4</MajorVersion>
  91. <MinorVersion>6</MinorVersion>
  92. <ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
  93. </PropertyGroup>
  94. <!--
  95. Helper Paths
  96. -->
  97. <PropertyGroup>
  98. <CommonPath>$(MSBuildThisFileDirectory)Common</CommonPath>
  99. <BclSourcesRoot>$(MSBuildThisFileDirectory)src</BclSourcesRoot>
  100. <MscorlibDir>$(MSBuildThisFileDirectory)</MscorlibDir>
  101. <NlpObjDir>$(BclSourcesRoot)\System\Globalization\Tables</NlpObjDir>
  102. </PropertyGroup>
  103. <!-- Sources -->
  104. <ItemGroup>
  105. <Compile Include="AssemblyInfo.cs" />
  106. <Compile Include="Resources\SR.cs" />
  107. </ItemGroup>
  108. <ItemGroup>
  109. <Compile Include="Stubs.cs" />
  110. <Compile Include="Internal.Runtime.Augments\RuntimeThread.cs" />
  111. <Compile Include="Microsoft.Win32\UnsafeNativeMethods.cs" />
  112. <Compile Include="Microsoft.Win32.SafeHandles\SafeWaitHandle.Unix.cs" />
  113. <Compile Include="System\AppContext.cs" />
  114. <Compile Include="System\Activator.cs" />
  115. <Compile Include="System\Array.cs" />
  116. <Compile Include="System\Attribute.cs" />
  117. <Compile Include="System\DefaultBinder.cs" />
  118. <Compile Include="System\DateTime.cs" />
  119. <Compile Include="System\Environment.cs" />
  120. <Compile Include="System\Exception.cs" />
  121. <Compile Include="System\Object.cs" />
  122. <Compile Include="System\Math.cs" />
  123. <Compile Include="System\MathF.cs" />
  124. <Compile Include="System\MissingMemberException.cs" />
  125. <Compile Include="System\ModuleHandle.cs" />
  126. <Compile Include="System\NotImplemented.cs" />
  127. <Compile Include="System\RuntimeFieldHandle.cs" />
  128. <Compile Include="System\RuntimeMethodHandle.cs" />
  129. <Compile Include="System\RuntimeTypeHandle.cs" />
  130. <Compile Include="System\Type.cs" />
  131. <Compile Include="System.Globalization\GlobalizationMode.cs" />
  132. <Compile Include="System.Globalization\CultureData.cs" />
  133. <Compile Include="System.Globalization\CultureInfo.cs" />
  134. <Compile Include="System.Collections.Generic\Comparer.cs" />
  135. <Compile Include="System.Collections.Generic\EqualityComparer.cs" />
  136. <Compile Include="System.Diagnostics\Debugger.cs" />
  137. <Compile Include="System.Diagnostics\StackFrame.cs" />
  138. <Compile Include="System.Diagnostics\StackTrace.cs" />
  139. <Compile Include="System.Diagnostics.Contracts\Contract.cs" />
  140. <Compile Include="System.Diagnostics.Tracing\EventSource.cs" />
  141. <Compile Include="System.IO\Stream.cs" />
  142. <Compile Include="System.IO\FileLoadException.cs" />
  143. <Compile Include="System.Reflection\Assembly.cs" />
  144. <Compile Include="System.Reflection\AssemblyName.cs" />
  145. <Compile Include="System.Reflection\CustomAttributeExtensions.cs" />
  146. <Compile Include="System.Reflection\FieldInfo.cs" />
  147. <Compile Include="System.Reflection\MethodBase.cs" />
  148. <Compile Include="System.Reflection.Emit\Stubs.cs" />
  149. <Compile Include="System.Reflection.Metadata\AssemblyExtensions.cs" />
  150. <Compile Include="System.Resources\ResourceManager.cs" />
  151. <Compile Include="System.Runtime.CompilerServices\RuntimeHelpers.cs" />
  152. <Compile Include="System.Runtime.CompilerServices\RuntimeFeature.cs" />
  153. <Compile Include="System.Runtime.InteropServices\ComEventsHelper.cs" />
  154. <Compile Include="System.Runtime.InteropServices\CriticalHandle.cs" />
  155. <Compile Include="System.Runtime.InteropServices\InteropExtensions.cs" />
  156. <Compile Include="System.Runtime.InteropServices\Marshal.cs" />
  157. <Compile Include="System.Runtime.Loader\AssemblyLoadContext.cs" />
  158. <Compile Include="System.Threading\EventWaitHandle.cs" />
  159. <Compile Include="System.Threading\Interlocked.cs" />
  160. <Compile Include="System.Threading\Mutex.cs" />
  161. <Compile Include="System.Threading\Overlapped.cs" />
  162. <Compile Include="System.Threading\PreAllocatedOverlapped.cs" />
  163. <Compile Include="System.Threading\Semaphore.cs" />
  164. <Compile Include="System.Threading\SynchronizationContext.cs" />
  165. <Compile Include="System.Threading\Thread.cs" />
  166. <Compile Include="System.Threading\ThreadPool.cs" />
  167. <Compile Include="System.Threading\ThreadPoolBoundHandle.cs" />
  168. </ItemGroup>
  169. <ItemGroup>
  170. <Compile Include="temp\*.cs" />
  171. </ItemGroup>
  172. <ItemGroup>
  173. <Compile Include="..\..\build\common\SR.cs" />
  174. <Compile Include="..\corlib\coreclr\Math.CoreCLR.cs" />
  175. <Compile Include="..\corlib\coreclr\SorterArray.cs" />
  176. <Compile Include="..\corlib\corefx\DateTime.cs" />
  177. <Compile Include="..\corlib\corefx\SynchronizationContext.cs" />
  178. <Compile Include="..\corlib\corefx\RuntimeImports.cs" />
  179. <Compile Include="..\corlib\corert\ThreadPool.cs" />
  180. <Compile Include="..\corlib\ReferenceSources\Array.cs" />
  181. <Compile Include="..\corlib\ReferenceSources\Buffer.cs" />
  182. <Compile Include="..\corlib\ReferenceSources\JitHelpers.cs" />
  183. <Compile Include="..\corlib\ReferenceSources\String.cs" />
  184. <Compile Include="..\corlib\Mono\RuntimeStructs.cs" />
  185. <Compile Include="..\corlib\System\Array.cs" />
  186. <Compile Include="..\corlib\System\ArgIterator.cs" />
  187. <Compile Include="..\corlib\System\Delegate.cs" />
  188. <Compile Include="..\corlib\System\DelegateSerializationHolder.cs" />
  189. <Compile Include="..\corlib\System\EmptyArray.cs" />
  190. <Compile Include="..\corlib\System\MathF.mono.cs" />
  191. <Compile Include="..\corlib\System\MulticastDelegate.cs" />
  192. <Compile Include="..\corlib\System\RuntimeArgumentHandle.cs" />
  193. <Compile Include="..\corlib\System\ValueType.cs" />
  194. <Compile Include="..\corlib\System\WeakReference.cs" />
  195. <Compile Include="..\corlib\System\WeakReference_T.cs" />
  196. <Compile Include="..\corlib\System.Runtime.InteropServices\SafeHandle.cs" />
  197. <Compile Include="..\corlib\System.Runtime.CompilerServices\ConditionalWeakTable.cs" />
  198. <Compile Include="..\corlib\System.Runtime.CompilerServices\PreserveDependencyAttribute.cs" />
  199. <Compile Include="..\corlib\System.Runtime.CompilerServices\RuntimeHelpers.cs" />
  200. <Compile Include="..\corlib\System.Threading\Interlocked.cs" />
  201. <Compile Include="..\corlib\System.Threading\Monitor.cs" />
  202. <Compile Include="..\corlib\System.Threading\NativeEventCalls.cs" />
  203. <Compile Include="..\corlib\System.Threading\RegisteredWaitHandle.cs" />
  204. <Compile Include="..\corlib\System.Threading\Thread.cs" />
  205. <Compile Include="..\corlib\System.Threading\TimerCallback.cs" />
  206. <Compile Include="..\corlib\System.Threading\Volatile.cs" />
  207. <Compile Include="..\corlib\System.Threading\WaitHandle.cs" />
  208. <Compile Include="..\corlib\System.Runtime.InteropServices\GCHandle.cs" />
  209. </ItemGroup>
  210. <ItemGroup>
  211. <Compile Include="..\referencesource\mscorlib\system\buffer.cs" />
  212. <Compile Include="..\referencesource\mscorlib\system\exception.cs" />
  213. <Compile Include="..\referencesource\mscorlib\system\enum.cs" />
  214. <Compile Include="..\referencesource\mscorlib\system\gc.cs" />
  215. <Compile Include="..\referencesource\mscorlib\system\typeloadexception.cs" />
  216. <Compile Include="..\referencesource\mscorlib\system\typedreference.cs" />
  217. <Compile Include="..\referencesource\mscorlib\system\threading\monitor.cs" />
  218. <Compile Include="..\referencesource\mscorlib\system\threading\thread.cs" />
  219. <Compile Include="..\referencesource\mscorlib\system\threading\threadpool.cs" />
  220. <Compile Include="..\referencesource\mscorlib\system\threading\waithandle.cs" />
  221. <Compile Include="..\referencesource\mscorlib\system\runtime\interopservices\safehandle.cs" />
  222. </ItemGroup>
  223. <ItemGroup>
  224. <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Array.cs" />
  225. <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.CoreRT.cs" />
  226. <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs" />
  227. <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs" />
  228. <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\MissingMetadataException.cs" />
  229. <Compile Include="..\corlib\corert\RuntimeAugments.cs" />
  230. <Compile Include="..\..\..\external\corert\src\Runtime.Base\src\System\Runtime\InteropServices\GCHandleType.cs" />
  231. </ItemGroup>
  232. <!-- Mono extensions -->
  233. <PropertyGroup>
  234. <DefineConstants>FEATURE_DEFAULT_INTERFACES;FEATURE_MANAGED_ETW_CHANNELS;$(DefineConstants)</DefineConstants>
  235. <DefineConstants>MONO;NETCORE;DISABLE_REMOTING;$(DefineConstants)</DefineConstants>
  236. <NoWarn>3021,$(NoWarn)</NoWarn>
  237. </PropertyGroup>
  238. <Import Project="..\..\..\netcore\System.Private.CoreLib\shared\System.Private.CoreLib.Shared.projitems" />
  239. <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -->
  240. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  241. <PropertyGroup>
  242. <!-- Overwrite the key that we are going to use for signing -->
  243. <AssemblyOriginatorKeyFile>..\silverlight.pub</AssemblyOriginatorKeyFile>
  244. <!-- Don't need a strong name signature because we only ship the native image -->
  245. <StrongNameSig>None</StrongNameSig>
  246. </PropertyGroup>
  247. </Project>