[System.Private.CoreLib] Fix the type conflicts with corefx types
[mono-project.git] / mcs / class / System.Private.CoreLib / System.Private.CoreLib.csproj
blobd0ad4a2e0f6134521db1c3515a48167259dfb8f0
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>8.0</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="Microsoft.Win32\UnsafeNativeMethods.cs" />
110 <Compile Include="Microsoft.Win32.SafeHandles\SafeWaitHandle.Unix.cs" />
111 <Compile Include="Mono\MonoDomain.cs" />
112 <Compile Include="Mono\MonoDomainSetup.cs" />
113 <Compile Include="Mono\MonoListItem.cs" />
114 <Compile Include="System\AppContext.cs" />
115 <Compile Include="System\Array.cs" />
116 <Compile Include="System\Attribute.cs" />
117 <Compile Include="System\Buffer.cs" />
118 <Compile Include="System\DefaultBinder.cs" />
119 <Compile Include="System\Enum.cs" />
120 <Compile Include="System\Environment.cs" />
121 <Compile Include="System\Exception.cs" />
122 <Compile Include="System\GC.cs" />
123 <Compile Include="System\Object.cs" />
124 <Compile Include="System\Math.cs" />
125 <Compile Include="System\MathF.cs" />
126 <Compile Include="System\MissingMemberException.cs" />
127 <Compile Include="System\NotImplemented.cs" />
128 <Compile Include="System\Nullable.cs" />
129 <Compile Include="System\String.cs" />
130 <Compile Include="System\Type.cs" />
131 <Compile Include="System\TypeLoadException.cs" />
132 <Compile Include="System\TypeNameParser.cs" />
133 <Compile Include="System\__ComObject.cs" />
134 <Compile Include="System.Globalization\GlobalizationMode.cs" />
135 <Compile Include="System.Globalization\CultureData.cs" />
136 <Compile Include="System.Globalization\CultureInfo.cs" />
137 <Compile Include="System.Collections.Generic\ArraySortHelper.cs" />
138 <Compile Include="System.Collections.Generic\Comparer.cs" />
139 <Compile Include="System.Collections.Generic\EqualityComparer.cs" />
140 <Compile Include="System.Diagnostics\StackFrame.cs" />
141 <Compile Include="System.Diagnostics\StackTrace.cs" />
142 <Compile Include="System.Diagnostics.Tracing\EventSource.cs" />
143 <Compile Include="System.IO\Stream.cs" />
144 <Compile Include="System.IO\FileLoadException.cs" />
145 <Compile Include="System.Reflection\Assembly.cs" />
146 <Compile Include="System.Reflection\CustomAttributeExtensions.cs" />
147 <Compile Include="System.Reflection\FieldInfo.cs" />
148 <Compile Include="System.Reflection\MemberInfo.cs" />
149 <Compile Include="System.Reflection\MethodBase.cs" />
150 <Compile Include="System.Reflection\RuntimeAssembly.cs" />
151 <Compile Include="System.Reflection\RuntimeMethodBody.cs" />
152 <Compile Include="System.Reflection\RuntimeLocalVariableInfo.cs" />
153 <Compile Include="System.Reflection\RuntimeExceptionHandlingClause.cs" />
154 <Compile Include="System.Reflection.Emit\AssemblyBuilder.cs" />
155 <Compile Include="System.Reflection.Emit\ConstructorBuilder.cs" />
156 <Compile Include="System.Reflection.Emit\ConstructorOnTypeBuilderInst.cs" />
157 <Compile Include="System.Reflection.Emit\CustomAttributeBuilder.cs" />
158 <Compile Include="System.Reflection.Emit\DerivedTypes.cs" />
159 <Compile Include="System.Reflection.Emit\DynamicILInfo.cs" />
160 <Compile Include="System.Reflection.Emit\DynamicMethod.cs" />
161 <Compile Include="System.Reflection.Emit\DynamicMethod.notsupported.cs" />
162 <Compile Include="System.Reflection.Emit\EnumBuilder.cs" />
163 <Compile Include="System.Reflection.Emit\EventBuilder.cs" />
164 <Compile Include="System.Reflection.Emit\EventOnTypeBuilderInst.cs" />
165 <Compile Include="System.Reflection.Emit\FieldBuilder.cs" />
166 <Compile Include="System.Reflection.Emit\FieldOnTypeBuilderInst.cs" />
167 <Compile Include="System.Reflection.Emit\GenericTypeParameterBuilder.cs" />
168 <Compile Include="System.Reflection.Emit\ILGenerator.cs" />
169 <Compile Include="System.Reflection.Emit\LocalBuilder.cs" />
170 <Compile Include="System.Reflection.Emit\MethodBuilder.cs" />
171 <Compile Include="System.Reflection.Emit\MethodOnTypeBuilderInst.cs" />
172 <Compile Include="System.Reflection.Emit\ModuleBuilder.cs" />
173 <Compile Include="System.Reflection.Emit\MonoArrayMethod.cs" />
174 <Compile Include="System.Reflection.Emit\ParameterBuilder.cs" />
175 <Compile Include="System.Reflection.Emit\PropertyBuilder.cs" />
176 <Compile Include="System.Reflection.Emit\PropertyOnTypeBuilderInst.cs" />
177 <Compile Include="System.Reflection.Emit\SignatureHelper.cs" />
178 <Compile Include="System.Reflection.Emit\TypeBuilder.cs" />
179 <Compile Include="System.Reflection.Emit\TypeBuilderInstantiation.cs" />
180 <Compile Include="System.Reflection.Emit\UnmanagedMarshal.cs" />
181 <Compile Include="System.Reflection.Metadata\AssemblyExtensions.cs" />
182 <Compile Include="System.Resources\ManifestBasedResourceGroveler.cs" />
183 <Compile Include="System.Runtime\GCSettings.cs" />
184 <Compile Include="System.Runtime\RuntimeImports.cs" />
185 <Compile Include="System.Runtime.CompilerServices\DependentHandle.cs" />
186 <Compile Include="System.Runtime.CompilerServices\RuntimeHelpers.cs" />
187 <Compile Include="System.Runtime.CompilerServices\RuntimeFeature.cs" />
188 <Compile Include="System.Runtime.InteropServices\CriticalHandle.cs" />
189 <Compile Include="System.Runtime.InteropServices\GCHandle.cs" />
190 <Compile Include="System.Runtime.InteropServices\InteropExtensions.cs" />
191 <Compile Include="System.Runtime.InteropServices\Marshal.cs" />
192 <Compile Include="System.Runtime.InteropServices\NativeLibrary.cs" />
193 <Compile Include="System.Runtime.Loader\AssemblyLoadContext.cs" />
194 <Compile Include="System.Runtime.Loader\AssemblyDependencyResolver.cs" />
195 <Compile Include="System.Runtime.Remoting.Contexts\Context.cs" />
196 <Compile Include="System.Security\DynamicSecurityMethodAttribute.cs" />
197 <Compile Include="System.Threading\EventWaitHandle.cs" />
198 <Compile Include="System.Threading\Interlocked.cs" />
199 <Compile Include="System.Threading\Mutex.cs" />
200 <Compile Include="System.Threading\Overlapped.cs" />
201 <Compile Include="System.Threading\PreAllocatedOverlapped.cs" />
202 <Compile Include="System.Threading\Semaphore.cs" />
203 <Compile Include="System.Threading\StackCrawlMark.cs" />
204 <Compile Include="System.Threading\Thread.cs" />
205 <Compile Include="System.Threading\ThreadPool.cs" />
206 <Compile Include="System.Threading\ThreadPoolBoundHandle.cs" />
207 <Compile Include="System.Threading\WaitHandle.cs" />
208 </ItemGroup>
209 <ItemGroup>
210 <Compile Include="..\..\build\common\Consts.cs" />
211 <Compile Include="..\..\build\common\SR.cs" />
213 <Compile Include="..\corlib\coreclr\Math.CoreCLR.cs" />
215 <Compile Include="..\corlib\ReferenceSources\JitHelpers.cs" />
216 <Compile Include="..\corlib\ReferenceSources\RuntimeType.cs" />
218 <Compile Include="..\corlib\Mono\RuntimeStructs.cs" />
219 <Compile Include="..\corlib\Mono\RuntimeMarshal.cs" />
220 <Compile Include="..\corlib\Mono\RuntimeHandles.cs" />
221 <Compile Include="..\corlib\Mono\SafeStringMarshal.cs" />
222 <Compile Include="..\corlib\Mono\SafeGPtrArrayHandle.cs" />
224 <Compile Include="..\corlib\System\ArgIterator.cs" />
225 <Compile Include="..\corlib\System\Delegate.cs" />
226 <Compile Include="..\corlib\System\DelegateSerializationHolder.cs" />
227 <Compile Include="..\corlib\System\EmptyArray.cs" />
228 <Compile Include="..\corlib\System\MathF.mono.cs" />
229 <Compile Include="..\corlib\System\ModuleHandle.cs" />
230 <Compile Include="..\corlib\System\MonoCustomAttrs.cs" />
231 <Compile Include="..\corlib\System\MulticastDelegate.cs" />
232 <Compile Include="..\corlib\System\RuntimeArgumentHandle.cs" />
233 <Compile Include="..\corlib\System\RuntimeFieldHandle.cs" />
234 <Compile Include="..\corlib\System\RuntimeTypeHandle.cs" />
235 <Compile Include="..\corlib\System\RuntimeMethodHandle.cs" />
236 <Compile Include="..\corlib\System\ValueType.cs" />
237 <Compile Include="..\corlib\System\WeakReference.cs" />
238 <Compile Include="..\corlib\System\WeakReference_T.cs" />
239 <Compile Include="..\corlib\System\TypeIdentifier.cs" />
240 <Compile Include="..\corlib\System\TypeSpec.cs" />
242 <Compile Include="..\corlib\System.Diagnostics\Debugger.cs" />
244 <Compile Include="..\corlib\System.Runtime.CompilerServices\PreserveDependencyAttribute.cs" />
246 <Compile Include="..\corlib\System.IO\MonoIOError.cs" />
247 <Compile Include="..\corlib\System.Threading\Monitor.cs" />
248 <Compile Include="..\corlib\System.Threading\RegisteredWaitHandle.cs" />
250 <Compile Include="..\corlib\System.Reflection\AssemblyName.cs" />
251 <Compile Include="..\corlib\System.Reflection\CustomAttributeData.cs" />
252 <Compile Include="..\corlib\System.Reflection\RuntimeMethodInfo.cs" />
253 <Compile Include="..\corlib\System.Reflection\RuntimeFieldInfo.cs" />
254 <Compile Include="..\corlib\System.Reflection\RuntimePropertyInfo.cs" />
255 <Compile Include="..\corlib\System.Reflection\RuntimeEventInfo.cs" />
256 <Compile Include="..\corlib\System.Reflection\RuntimeParameterInfo.cs" />
257 <Compile Include="..\corlib\System.Reflection\RuntimeModule.cs" />
258 </ItemGroup>
259 <ItemGroup>
260 <Compile Include="..\referencesource\mscorlib\system\gc.cs" />
261 <Compile Include="..\referencesource\mscorlib\system\typedreference.cs" />
262 <Compile Include="..\referencesource\mscorlib\system\rttype.cs" />
263 <Compile Include="..\referencesource\mscorlib\system\threading\monitor.cs" />
264 </ItemGroup>
265 <ItemGroup>
266 <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs" />
267 <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs" />
268 <Compile Include="..\..\..\external\corert\src\System.Private.CoreLib\src\System\Reflection\MissingMetadataException.cs" />
269 <Compile Include="..\corlib\corert\RuntimeAugments.cs" />
270 </ItemGroup>
272 <!-- Mono extensions -->
273 <PropertyGroup>
274 <DefineConstants>FEATURE_DEFAULT_INTERFACES;FEATURE_MANAGED_ETW_CHANNELS;$(DefineConstants)</DefineConstants>
276 <DefineConstants>MONO;NETCORE;DISABLE_REMOTING;MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>
277 <NoWarn>3021,$(NoWarn)</NoWarn>
278 </PropertyGroup>
280 <Import Project="..\..\..\netcore\System.Private.CoreLib\shared\System.Private.CoreLib.Shared.projitems" />
282 <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -->
283 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
285 <PropertyGroup>
286 <!-- Overwrite the key that we are going to use for signing -->
287 <AssemblyOriginatorKeyFile>..\silverlight.pub</AssemblyOriginatorKeyFile>
288 <!-- Don't need a strong name signature because we only ship the native image -->
289 <StrongNameSig>None</StrongNameSig>
290 </PropertyGroup>
291 </Project>