Skip to content

Commit

Permalink
Merge pull request #506 from DomCR/netstandard20
Browse files Browse the repository at this point in the history
netstandard20
  • Loading branch information
DomCR authored Dec 14, 2024
2 parents 319dba0 + 4710cc2 commit eb7a641
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ACadSharp/ACadSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net5.0;net6.0;net7.0;net48;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net5.0;net6.0;net7.0;net48;netstandard2.1;netstandard2.0</TargetFrameworks>
<Authors>DomCr</Authors>
<PackageId>ACadSharp</PackageId>
<PackageTags>C# Dwg Dxf</PackageTags>
Expand Down Expand Up @@ -36,7 +36,7 @@
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1' OR '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
</ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/ACadSharp/IO/DWG/DwgStreamWriters/DwgHandleWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public DwgHandleWriter(ACadVersion version, MemoryStream stream, Dictionary<ulon
{
this._handleMap.Add(item.Key, item.Value);
}
#elif NETSTANDARD2_0
this._handleMap = new Dictionary<ulong, long>(map.OrderBy(o => o.Key).ToDictionary(x => x.Key, x => x.Value));
#else
this._handleMap = new Dictionary<ulong, long>(map.OrderBy(o => o.Key));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/CSUtilities

0 comments on commit eb7a641

Please sign in to comment.