-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
Microsoft.Extensions.DependencyModel.csproj
59 lines (53 loc) · 2.7 KB
/
Microsoft.Extensions.DependencyModel.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetPathOfFileAbove(CommonManaged.props))" />
<PropertyGroup>
<Description>Abstractions for reading `.deps` files.</Description>
<TargetFrameworks>net451;netstandard1.3;netstandard1.6;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netstandard1.3;netstandard1.6;netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Microsoft.DotNet.PlatformAbstractions\HashCodeCombiner.cs" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.Extensions.DependencyModel.Tests" />
</ItemGroup>
<Choose>
<!--
Since we added a target for netstandard2.0 so users aren't forced to download the 1.x dependencies,
or depend on Newtonsoft.Json, use the Microsoft.Bcl.Json.Sources package (which targets netstandard2.0).
However, we still use the Newtonsoft.Json (v9.0.1) for other TFMs, so existing users don't need to upgrade their Newtonsoft.Json.
For example, the SDK targets net4x and is loaded in VS, so it can't upgrade to a new Newtonsoft.Json.
-->
<When Condition="'$(TargetFramework)' == 'netstandard2.0'">
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="4.7.1" />
</ItemGroup>
<ItemGroup>
<Compile Remove="DependencyContextJsonReader.JsonTextReader.cs" />
<Compile Remove="DependencyContextWriter.JsonTextWriter.cs" />
<Compile Remove="UnifiedJsonReader.JsonTextReader.cs" />
<Compile Remove="UnifiedJsonWriter.JsonTextWriter.cs" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Remove="ArrayBufferWriter.cs" />
<Compile Remove="DependencyContextJsonReader.Utf8JsonReader.cs" />
<Compile Remove="DependencyContextWriter.Utf8JsonWriter.cs" />
<Compile Remove="UnifiedJsonReader.Utf8JsonReader.cs" />
<Compile Remove="UnifiedJsonWriter.Utf8JsonWriter.cs" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' Or '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="System.AppContext" Version="4.1.0" />
<PackageReference Include="System.Diagnostics.Debug" Version="4.0.11" />
<PackageReference Include="System.Dynamic.Runtime" Version="4.0.11" />
<PackageReference Include="System.IO.FileSystem" Version="4.0.1" />
<PackageReference Include="System.Linq" Version="4.1.0" />
</ItemGroup>
</Project>