|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 |
| - <TargetFramework>netstandard2.0</TargetFramework> |
| 4 | + <TargetFrameworks>$(NetCoreAppToolCurrent);$(NetFrameworkToolCurrent)</TargetFrameworks> |
5 | 5 | <Description>Abstractions for modifying .NET host binaries</Description>
|
6 | 6 | <IsShipping>false</IsShipping>
|
7 | 7 | <IsPackable Condition="'$(BuildOnlyPgoInstrumentedAssets)' != 'true'">true</IsPackable>
|
|
14 | 14 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
15 | 15 | <!-- Historically, the key for the managed projects is the AspNetCore key Arcade carries. -->
|
16 | 16 | <StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
|
17 |
| - <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> |
| 17 | + <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign> |
18 | 18 | <DefineConstants>$(DefineConstants);HOST_MODEL</DefineConstants>
|
19 | 19 | </PropertyGroup>
|
20 | 20 |
|
21 |
| - <ItemGroup> |
22 |
| - <!-- SDK pins this to a lower version https://github.com/dotnet/sdk/issues/43325 --> |
23 |
| - <PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataToolsetVersion)" /> |
24 |
| - <PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" /> |
25 |
| - |
26 |
| - <ProjectReference Include="$(LibrariesProjectRoot)System.Text.Json\src\System.Text.Json.csproj" /> |
| 21 | + <!-- Manually reference these assemblies which are provided by MSBuild / .NET SDK --> |
| 22 | + <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> |
| 23 | + <PackageDownloadAndReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableToolsetVersion)" Folder="lib/net462" /> |
| 24 | + <PackageDownloadAndReference Include="System.Memory" Version="$(SystemMemoryToolsetVersion)" Folder="lib/net461" /> |
| 25 | + <PackageDownloadAndReference Include="System.Text.Json" Version="$(SystemTextJsonToolsetVersion)" Folder="lib/net462" /> |
| 26 | + <PackageDownloadAndReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataToolsetVersion)" Folder="lib/net462" /> |
27 | 27 | </ItemGroup>
|
28 | 28 |
|
29 | 29 | <ItemGroup>
|
|
35 | 35 | <Compile Include="$(CoreClrProjectRoot)tools\Common\System\Collections\Generic\ArrayBuilder.cs" Link="Common\ArrayBuilder.cs" />
|
36 | 36 | </ItemGroup>
|
37 | 37 |
|
| 38 | + <Import Project="$(RepositoryEngineeringDir)PackageDownloadAndReference.targets" /> |
| 39 | + |
38 | 40 | </Project>
|
0 commit comments