|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 | <PropertyGroup>
|
3 | 3 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
4 |
| - <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix</TargetFrameworks> |
| 4 | + <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)</TargetFrameworks> |
5 | 5 | <Nullable>enable</Nullable>
|
6 |
| - <PackageDescription> |
7 |
| - Provides classes that can read and write the Tar archive format. |
| 6 | + </PropertyGroup> |
8 | 7 |
|
9 |
| - Commonly Used Types: |
10 |
| - System.Formats.Tar.TarFile |
11 |
| - System.Formats.Tar.TarEntry |
12 |
| - System.Formats.Tar.TarReader |
13 |
| - System.Formats.Tar.TarWriter |
14 |
| - </PackageDescription> |
| 8 | + <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> |
| 9 | + <PropertyGroup> |
| 10 | + <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> |
| 11 | + <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.PlatformNotSupported_SystemFormatsTar</GeneratePlatformNotSupportedAssemblyMessage> |
15 | 12 | </PropertyGroup>
|
16 |
| - <ItemGroup> |
| 13 | + |
| 14 | + <ItemGroup Condition="'$(TargetPlatformIdentifier)' != ''"> |
17 | 15 | <Compile Include="System\Formats\Tar\FieldLengths.cs" />
|
18 | 16 | <Compile Include="System\Formats\Tar\FieldLocations.cs" />
|
19 | 17 | <Compile Include="System\Formats\Tar\PosixTarEntry.cs" />
|
|
52 | 50 | <Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs" Link="Common\System\Text\ValueStringBuilder.cs" />
|
53 | 51 | </ItemGroup>
|
54 | 52 | <!-- Unix specific files -->
|
55 |
| - <ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'windows'"> |
| 53 | + <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Unix'"> |
56 | 54 | <Compile Include="System\Formats\Tar\TarEntry.Unix.cs" />
|
57 | 55 | <Compile Include="System\Formats\Tar\TarWriter.Unix.cs" />
|
58 | 56 | <Compile Include="$(CommonPath)Interop\Unix\Interop.IOErrors.cs" Link="Common\Interop\Unix\Interop.IOErrors.cs" />
|
|
70 | 68 | <Reference Include="System.Collections" />
|
71 | 69 | <Reference Include="System.Memory" />
|
72 | 70 | <Reference Include="System.Runtime" />
|
73 |
| - <Reference Include="System.Runtime.CompilerServices.Unsafe" /> |
74 |
| - <Reference Include="System.Runtime.Extensions" /> |
75 | 71 | <Reference Include="System.Runtime.InteropServices" />
|
76 | 72 | <Reference Include="System.Threading" />
|
77 | 73 | </ItemGroup>
|
|
0 commit comments