Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Update SharpCompress, add net46, net462, net48 targeting to accommodate
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 26, 2023
1 parent f49f223 commit 1993208
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions src/Squirrel/Squirrel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net46;net461;net462;net48;netstandard2.0;net5.0;net6.0</TargetFrameworks>
<Description>Squirrel</Description>
<Title>Squirrel</Title>
<AssemblyName>SquirrelLib</AssemblyName>
Expand All @@ -14,18 +14,27 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.31.0" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net5.0' ">
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework) == 'net461' ">
<PackageReference Include="System.ValueTuple" Version="4.5" />
<Reference Include="System.Web" />
<Reference Include="System.Net.Http" />
</ItemGroup>
<Choose>
<When Condition=" $(TargetFramework.StartsWith('net4')) ">
<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.26.0" Condition=" $(TargetFramework) == 'net46'" />
<PackageReference Include="SharpCompress" Version="0.32.2" Condition=" $(TargetFramework) == 'net461'" />
<PackageReference Include="SharpCompress" Version="0.33.0" Condition=" $(TargetFramework) == 'net462' " />
<PackageReference Include="SharpCompress" Version="0.33.0" Condition=" $(TargetFramework) == 'net48' " />
<PackageReference Include="System.ValueTuple" Version="4.5" />
<Reference Include="System.Web" />
<Reference Include="System.Net.Http" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.33.0" />
</ItemGroup>
</Otherwise>
</Choose>

</Project>

0 comments on commit 1993208

Please sign in to comment.