f4720c6124803ec5e774770eaa677e94ab36c7c2
[platform/upstream/dotnet/runtime.git] /
1 <Project Sdk="Microsoft.NET.Sdk">
2
3   <PropertyGroup>
4     <TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
5     <!-- Debug IL generation -->
6     <ILEmitBackendSaveAssemblies>false</ILEmitBackendSaveAssemblies>
7     <!-- Type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' has been forwarded down.-->
8     <NoWarn>$(NoWarn);CP0001</NoWarn>
9     <IsPackable>true</IsPackable>
10     <EnableAOTAnalyzer>true</EnableAOTAnalyzer>
11     <PackageDescription>Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.</PackageDescription>
12   </PropertyGroup>
13
14   <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
15   <PropertyGroup>
16     <ILEmitBackend Condition="'$(TargetFramework)' != 'netstandard2.0'">true</ILEmitBackend>
17     <DefineConstants Condition="'$(ILEmitBackend)' == 'true'">$(DefineConstants);IL_EMIT</DefineConstants>
18     <DefineConstants Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework' and
19                                 '$(ILEmitBackendSaveAssemblies)' == 'true'">$(DefineConstants);SAVE_ASSEMBLIES</DefineConstants>
20   </PropertyGroup>
21
22   <ItemGroup>
23     <ILLinkSubstitutionsXmls Include="$(ILLinkDirectory)ILLink.Substitutions.xml" />
24   </ItemGroup>
25
26   <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
27     <Compile Include="$(CommonPath)Extensions\ParameterDefaultValue\ParameterDefaultValue.netcoreapp.cs"
28              Link="Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.netcoreapp.cs" />
29   </ItemGroup>
30
31   <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
32     <Compile Include="$(CommonPath)Extensions\ParameterDefaultValue\ParameterDefaultValue.netstandard.cs"
33              Link="Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.netstandard.cs" />
34     <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMembersAttribute.cs" />
35     <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" />
36     <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\UnconditionalSuppressMessageAttribute.cs" />
37   </ItemGroup>
38
39   <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
40     <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\RequiresDynamicCodeAttribute.cs" />
41   </ItemGroup>
42
43   <ItemGroup>
44     <Compile Include="**\*.cs" />
45     <Compile Remove="ServiceLookup\ILEmit\**\*.cs" />
46     <Compile Condition="'$(ILEmitBackend)' == 'true'" Include="ServiceLookup\ILEmit\*.cs" />
47     <Compile Include="$(CommonPath)Extensions\ParameterDefaultValue\ParameterDefaultValue.cs"
48              Link="Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs" />
49     <Compile Include="$(CommonPath)Extensions\TypeNameHelper\TypeNameHelper.cs"
50              Link="Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs" />
51   </ItemGroup>
52
53   <ItemGroup>
54     <ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Extensions.DependencyInjection.Abstractions\src\Microsoft.Extensions.DependencyInjection.Abstractions.csproj" />
55   </ItemGroup>
56
57   <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))">
58     <PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
59     <ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\src\Microsoft.Bcl.AsyncInterfaces.csproj" />
60   </ItemGroup>
61
62 </Project>