Skip to content

Commit

Permalink
chore: trim exported platform dlls to standard 2.0 only
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Sep 4, 2024
1 parent 26e5fc2 commit 7e8d14c
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/Unleash/Unleash.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;net481;net48;net472;net6.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
</PropertyGroup>

Expand All @@ -16,17 +12,6 @@
</PropertyGroup>

<!-- Need to conditionally bring in references for the .NET Framework 4.* targets -->
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
<Reference Include="System.Net.Http" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<Reference Include="System.Net.Http" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net481'">
<Reference Include="System.Net.Http" />
</ItemGroup>

<ItemGroup>
<Compile Remove="ActivationStrategy.cs" />
Expand Down Expand Up @@ -61,11 +46,8 @@
<None Include="UnleashException.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="LibLog" Version="4.2.6">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 7e8d14c

Please sign in to comment.