Skip to content

Commit f00615c

Browse files
authored
Add System.Formats.Tar assembly to NetCoreAppLibrary.props (#68343)
* Add assembly to NetCoreAppLibrary.props * Remove <PackageDescription> from src csproj since it is not OOB. * Add NetCoreAppCurrent to src csproj TargetFrameworks * Additional src csproj changes. Co-authored-by: carlossanlop <[email protected]>
1 parent 233c40e commit f00615c

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/libraries/NetCoreAppLibrary.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
System.Drawing.Primitives;
6161
System.Dynamic.Runtime;
6262
System.Formats.Asn1;
63+
System.Formats.Tar;
6364
System.Globalization;
6465
System.Globalization.Calendars;
6566
System.Globalization.Extensions;

src/libraries/System.Formats.Tar/src/System.Formats.Tar.csproj

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4-
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix</TargetFrameworks>
4+
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)</TargetFrameworks>
55
<Nullable>enable</Nullable>
6-
<PackageDescription>
7-
Provides classes that can read and write the Tar archive format.
6+
</PropertyGroup>
87

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>
1512
</PropertyGroup>
16-
<ItemGroup>
13+
14+
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != ''">
1715
<Compile Include="System\Formats\Tar\FieldLengths.cs" />
1816
<Compile Include="System\Formats\Tar\FieldLocations.cs" />
1917
<Compile Include="System\Formats\Tar\PosixTarEntry.cs" />
@@ -52,7 +50,7 @@
5250
<Compile Include="$(CommonPath)System\Text\ValueStringBuilder.cs" Link="Common\System\Text\ValueStringBuilder.cs" />
5351
</ItemGroup>
5452
<!-- Unix specific files -->
55-
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'windows'">
53+
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Unix'">
5654
<Compile Include="System\Formats\Tar\TarEntry.Unix.cs" />
5755
<Compile Include="System\Formats\Tar\TarWriter.Unix.cs" />
5856
<Compile Include="$(CommonPath)Interop\Unix\Interop.IOErrors.cs" Link="Common\Interop\Unix\Interop.IOErrors.cs" />
@@ -70,8 +68,6 @@
7068
<Reference Include="System.Collections" />
7169
<Reference Include="System.Memory" />
7270
<Reference Include="System.Runtime" />
73-
<Reference Include="System.Runtime.CompilerServices.Unsafe" />
74-
<Reference Include="System.Runtime.Extensions" />
7571
<Reference Include="System.Runtime.InteropServices" />
7672
<Reference Include="System.Threading" />
7773
</ItemGroup>

0 commit comments

Comments
 (0)