Files
mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj
T
Egor Bogatov 40f28b2e63 Make System.Private.CoreLib.csproj VS friendly (#15965)
Now it's possible to open System.Private.CoreLib.csproj in an IDE and build (use Roslyn version from eng/Versions.props).
2019-08-02 10:05:22 -04:00

308 lines
17 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\eng\Versions.props"/>
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<GenerateResxSourceOmitGetResourceString>true</GenerateResxSourceOmitGetResourceString>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<EnsureRuntimePackageDependencies>false</EnsureRuntimePackageDependencies>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- Ensure a portable PDB is emitted for the project. A PDB is needed for crossgen. -->
<DebugType>Portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Configurations>Debug;Release;Checked</Configurations>
<Configuration>Release</Configuration>
<Platforms>x64;x86;arm;arm64</Platforms>
<Features>strict;nullablePublicOnly</Features>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsUnix)'=='' AND '$(TargetsOSX)'=='' AND '$(TargetsWindows)'==''">
<TargetsUnix>true</TargetsUnix>
<TargetsOSX>true</TargetsOSX>
<TargetsWindows>false</TargetsWindows>
<BuildArch>x64</BuildArch>
<OutputPath>bin/x64</OutputPath>
</PropertyGroup>
<!-- Compilation options -->
<PropertyGroup>
<Configuration Condition=" '$(BuildType)' != '' ">$(BuildType)</Configuration>
<Platform Condition=" '$(BuildArch)' != '' ">$(BuildArch)</Platform>
<Platform Condition=" '$(Platform)' == 'armel' ">arm</Platform>
<ProjectGuid>{DD18B4BA-3B49-437B-9E34-41EF8A640CE0}</ProjectGuid>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
<ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
<NoStdLib>true</NoStdLib>
<NoCompilerStandardLib>true</NoCompilerStandardLib>
<SubsystemVersion>6.00</SubsystemVersion>
<Utf8Output>true</Utf8Output>
<HighEntropyVA>true</HighEntropyVA>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);649,1573,1591,0419,3021</NoWarn>
<Nullable>enable</Nullable>
<!-- Ignore all previous constants since SPCL is sensitive to what is defined and the Sdk adds some by default -->
<DefineConstants>$(DefineConstants);netcoreapp</DefineConstants>
<DisableImplicitConfigurationDefines>true</DisableImplicitConfigurationDefines>
<!-- 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
the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). -->
<_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories>
<_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths>
<SkipCommonResourcesIncludes>true</SkipCommonResourcesIncludes>
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
</PropertyGroup>
<!-- Platform specific properties -->
<PropertyGroup Condition="'$(Platform)' == 'x64'">
<PlatformTarget>x64</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<BaseAddress>0x180000000</BaseAddress>
<DefineConstants>BIT64;AMD64;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'x86'">
<PlatformTarget>x86</PlatformTarget>
<BaseAddress>0x10000000</BaseAddress>
<DefineConstants>BIT32;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm'">
<PlatformTarget>arm</PlatformTarget>
<DefineConstants>BIT32;ARM;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm64'">
<PlatformTarget>AnyCPU</PlatformTarget>
<DefineConstants>BIT64;ARM64;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Configuration specific properties -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">
<DebugSymbols>true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Debug'">false</Optimize>
<Optimize Condition="'$(Optimize)' == '' and '$(Configuration)' == 'Checked'">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<DefineConstants>_LOGGING;DEBUG;TRACE;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'x86' or '$(Platform)' == 'x64'">CODE_ANALYSIS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols>true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbOnly</DebugType>
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsOSX)' == 'true'">
<DefineConstants>PLATFORM_OSX;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- Assembly attributes -->
<PropertyGroup>
<AssemblyName>System.Private.CoreLib</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<Description>$(AssemblyName)</Description>
</PropertyGroup>
<!-- Signing -->
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<StrongNameKeyId>Open</StrongNameKeyId>
</PropertyGroup>
<!--
Helper Paths
-->
<PropertyGroup>
<CommonPath>$(MSBuildThisFileDirectory)Common</CommonPath>
<BclSourcesRoot>$(MSBuildThisFileDirectory)src</BclSourcesRoot>
<SharedBclSourcesRoot>$(MSBuildThisFileDirectory)shared</SharedBclSourcesRoot>
</PropertyGroup>
<!-- Mono specific build changes -->
<PropertyGroup>
<!-- Disable nullability-related warnings -->
<NoWarn>$(NoWarn),CS8597,CS8600,CS8601,CS8602,CS8603,CS8604,CS8609,CS8611,CS8618,CS8620,CS8625,CS8631,CS8632,CS8634</NoWarn>
<NoWarn>$(NoWarn),618,67</NoWarn>
<DefineConstants>FEATURE_DEFAULT_INTERFACES;FEATURE_MANAGED_ETW_CHANNELS;$(DefineConstants)</DefineConstants>
<DefineConstants>MONO;NETCORE;DISABLE_REMOTING;MONO_FEATURE_SRE;$(DefineConstants)</DefineConstants>
<FeaturePortableTimer>true</FeaturePortableTimer>
<FeaturePerfTracing>true</FeaturePerfTracing>
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion>
</PropertyGroup>
<!-- Sources -->
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="resources\SR.common.cs" />
<Compile Include="resources\SR.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="src\Microsoft.Win32\UnsafeNativeMethods.cs" />
<Compile Include="src\Mono\MonoListItem.cs" />
<Compile Include="src\Mono\MonoDomain.cs" />
<Compile Include="src\Mono\MonoDomainSetup.cs" />
<Compile Include="src\Mono\RuntimeHandles.cs" />
<Compile Include="src\System\AppContext.cs" />
<Compile Include="src\System\ArgIterator.cs" />
<Compile Include="src\System\Array.cs" />
<Compile Include="src\System\Attribute.cs" />
<Compile Include="src\System\Buffer.cs" />
<Compile Include="src\System\Delegate.cs" />
<Compile Include="src\System\Enum.cs" />
<Compile Include="src\System\Environment.cs" />
<Compile Include="src\System\Environment.Mono.cs" />
<Compile Include="src\System\Exception.cs" />
<Compile Include="src\System\GC.cs" />
<Compile Include="src\System\Object.cs" />
<Compile Include="src\System\Math.cs" />
<Compile Include="src\System\MathF.cs" />
<Compile Include="src\System\MissingMemberException.cs" />
<Compile Include="src\System\ModuleHandle.cs" />
<Compile Include="src\System\MulticastDelegate.cs" />
<Compile Include="src\System\NotImplemented.cs" />
<Compile Include="src\System\Nullable.cs" />
<Compile Include="src\System\RuntimeArgumentHandle.cs" />
<Compile Include="src\System\RuntimeFieldHandle.cs" />
<Compile Include="src\System\RuntimeMethodHandle.cs" />
<Compile Include="src\System\RuntimeType.cs" />
<Compile Include="src\System\RuntimeTypeHandle.cs" />
<Compile Include="src\System\String.cs" />
<Compile Include="src\System\Type.cs" />
<Compile Include="src\System\TypeIdentifier.cs" />
<Compile Include="src\System\TypedReference.cs" />
<Compile Include="src\System\TypeLoadException.cs" />
<Compile Include="src\System\TypeNameParser.cs" />
<Compile Include="src\System\ValueType.cs" />
<Compile Include="src\System\WeakReference.cs" />
<Compile Include="src\System\WeakReference.T.cs" />
<Compile Include="src\System\__ComObject.cs" />
<Compile Include="src\System.Globalization\GlobalizationMode.cs" />
<Compile Include="src\System.Collections.Generic\ArraySortHelper.cs" />
<Compile Include="src\System.Collections.Generic\Comparer.cs" />
<Compile Include="src\System.Collections.Generic\EqualityComparer.cs" />
<Compile Include="src\System.Diagnostics\Debugger.cs" />
<Compile Include="src\System.Diagnostics\StackFrame.cs" />
<Compile Include="src\System.Diagnostics\StackTrace.cs" />
<Compile Include="src\System.IO\Stream.cs" />
<Compile Include="src\System.IO\FileLoadException.cs" />
<Compile Include="src\System.Reflection\Assembly.cs" />
<Compile Include="src\System.Reflection\AssemblyName.cs" />
<Compile Include="src\System.Reflection\CustomAttribute.cs" />
<Compile Include="src\System.Reflection\CustomAttributeData.cs" />
<Compile Include="src\System.Reflection\CustomAttributeTypedArgument.cs" />
<Compile Include="src\System.Reflection\FieldInfo.cs" />
<Compile Include="src\System.Reflection\MemberInfo.cs" />
<Compile Include="src\System.Reflection\MethodBase.cs" />
<Compile Include="src\System.Reflection\RuntimeAssembly.cs" />
<Compile Include="src\System.Reflection\RuntimeEventInfo.cs" />
<Compile Include="src\System.Reflection\RuntimeFieldInfo.cs" />
<Compile Include="src\System.Reflection\RuntimeLocalVariableInfo.cs" />
<Compile Include="src\System.Reflection\RuntimeMethodBody.cs" />
<Compile Include="src\System.Reflection\RuntimeMethodInfo.cs" />
<Compile Include="src\System.Reflection\RuntimeModule.cs" />
<Compile Include="src\System.Reflection\RuntimeParameterInfo.cs" />
<Compile Include="src\System.Reflection\RuntimePropertyInfo.cs" />
<Compile Include="src\System.Reflection\RuntimeExceptionHandlingClause.cs" />
<Compile Include="src\System.Reflection.Emit\AssemblyBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\ConstructorBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\ConstructorOnTypeBuilderInst.cs" />
<Compile Include="src\System.Reflection.Emit\CustomAttributeBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\DerivedTypes.cs" />
<Compile Include="src\System.Reflection.Emit\DynamicILInfo.cs" />
<Compile Include="src\System.Reflection.Emit\DynamicMethod.cs" />
<Compile Include="src\System.Reflection.Emit\DynamicMethod.notsupported.cs" />
<Compile Include="src\System.Reflection.Emit\EnumBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\EventBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\EventOnTypeBuilderInst.cs" />
<Compile Include="src\System.Reflection.Emit\FieldBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\FieldOnTypeBuilderInst.cs" />
<Compile Include="src\System.Reflection.Emit\GenericTypeParameterBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\ILGenerator.cs" />
<Compile Include="src\System.Reflection.Emit\LocalBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\MethodBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\MethodOnTypeBuilderInst.cs" />
<Compile Include="src\System.Reflection.Emit\ModuleBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\MonoArrayMethod.cs" />
<Compile Include="src\System.Reflection.Emit\ParameterBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\PropertyBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\PropertyOnTypeBuilderInst.cs" />
<Compile Include="src\System.Reflection.Emit\SignatureHelper.cs" />
<Compile Include="src\System.Reflection.Emit\TypeBuilder.cs" />
<Compile Include="src\System.Reflection.Emit\TypeBuilderInstantiation.cs" />
<Compile Include="src\System.Reflection.Emit\UnmanagedMarshal.cs" />
<Compile Include="src\System.Reflection.Metadata\AssemblyExtensions.cs" />
<Compile Include="src\System.Resources\ManifestBasedResourceGroveler.cs" />
<Compile Include="src\System.Runtime\GCSettings.cs" />
<Compile Include="src\System.Runtime\RuntimeImports.cs" />
<Compile Include="src\System.Runtime.CompilerServices\DependentHandle.cs" />
<Compile Include="src\System.Runtime.CompilerServices\JitHelpers.cs" />
<Compile Include="src\System.Runtime.CompilerServices\RuntimeHelpers.cs" />
<Compile Include="src\System.Runtime.CompilerServices\RuntimeFeature.cs" />
<Compile Include="src\System.Runtime.InteropServices\CriticalHandle.cs" />
<Compile Include="src\System.Runtime.InteropServices\GCHandle.cs" />
<Compile Include="src\System.Runtime.InteropServices\Marshal.cs" />
<Compile Include="src\System.Runtime.InteropServices\MarshalAsAttribute.cs" />
<Compile Include="src\System.Runtime.Loader\AssemblyLoadContext.cs" />
<Compile Include="src\System.Runtime.Loader\AssemblyDependencyResolver.cs" />
<Compile Include="src\System.Runtime.Remoting.Contexts\Context.cs" />
<Compile Include="src\System.Security\DynamicSecurityMethodAttribute.cs" />
<Compile Include="src\System.Threading\Interlocked.cs" />
<Compile Include="src\System.Threading\Monitor.cs" />
<Compile Include="src\System.Threading\Overlapped.cs" />
<Compile Include="src\System.Threading\PreAllocatedOverlapped.cs" />
<Compile Include="src\System.Threading\RegisteredWaitHandle.cs" />
<Compile Include="src\System.Threading\StackCrawlMark.cs" />
<Compile Include="src\System.Threading\Thread.cs" />
<Compile Include="src\System.Threading\ThreadPool.cs" />
<Compile Include="src\System.Threading\ThreadPoolBoundHandle.cs" />
<Compile Include="src\System.Threading\WaitHandle.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsUnix)' == 'true'">
<Compile Include="src\Microsoft.Win32.SafeHandles\SafeWaitHandle.Unix.cs" />
<Compile Include="src\System\Environment.Unix.cs" />
<Compile Include="src\System.Globalization\GlobalizationMode.Unix.cs" />
<Compile Include="src\System.Threading\EventWaitHandle.Unix.cs" />
<Compile Include="src\System.Threading\Mutex.Unix.cs" />
<Compile Include="src\System.Threading\Semaphore.Unix.cs" />
<Compile Include="src\System.Runtime.InteropServices\NativeLibrary.Unix.cs" />
<Compile Include="..\..\mcs\class\corlib\System.IO\MonoIOError.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<Compile Include="src\System.Globalization\GlobalizationMode.Windows.cs" />
<Compile Include="src\System.Runtime.InteropServices\NativeLibrary.Windows.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\mcs\class\corlib\Mono\RuntimeStructs.cs" />
<Compile Include="..\..\mcs\class\corlib\Mono\RuntimeMarshal.cs" />
<Compile Include="..\..\mcs\class\corlib\Mono\SafeStringMarshal.cs" />
<Compile Include="..\..\mcs\class\corlib\Mono\SafeGPtrArrayHandle.cs" />
<Compile Include="..\..\mcs\class\corlib\System\TypeSpec.cs" />
<Compile Include="..\..\mcs\class\corlib\System.Runtime.CompilerServices\PreserveDependencyAttribute.cs" />
</ItemGroup>
<Import Project="shared\System.Private.CoreLib.Shared.projitems" />
<!-- Use Roslyn Compilers to build -->
<Import Project="../roslyn/packages/microsoft.net.compilers.toolset/$(MicrosoftNetCompilersVersion)/build/Microsoft.Net.Compilers.Toolset.props" />
<ItemGroup>
<EmbeddedResource LogicalName="System.Private.CoreLib.xml" Include="src\LinkerDescriptor\System.Private.CoreLib.xml"/>
</ItemGroup>
</Project>