Skip to content

Commit

Permalink
Add support for net472 on projects that depends on System.ValueTuple.…
Browse files Browse the repository at this point in the history
… Remove this dependency from net472. (#696)

Co-authored-by: Rivera, Mariano <mariano.rivera2@bakerhughes.com>
  • Loading branch information
Rivsoft and mariano-rivera authored Apr 8, 2021
1 parent 3bf24cf commit 82d3cb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/Splat.Drawing/Splat.Drawing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>MonoAndroid90;Xamarin.iOS10;Xamarin.Mac20;Xamarin.TVOS10;Xamarin.WatchOS10;tizen40;netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461;uap10.0.16299;netcoreapp3.1;net5.0-windows</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461;net472;uap10.0.16299;netcoreapp3.1;net5.0-windows</TargetFrameworks>
<RootNamespace>Splat</RootNamespace>
<Authors>.NET Foundation and Contributors</Authors>
<Description>A library to make things cross-platform that should be</Description>
Expand Down Expand Up @@ -42,14 +42,17 @@
<Compile Include="Platforms\TypeForwardedSystemDrawing.cs" />
<Compile Include="Platforms\ReflectionStubs.cs" />

<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Drawing.Primitives" Version="4.3.0" />
<Reference Include="WindowsBase" />
<Reference Include="System.Xaml" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net46')) ">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('netcoreapp3')) ">
<Compile Include="Platforms\netcoreapp3\**\*.cs" />

Expand Down
4 changes: 2 additions & 2 deletions src/Splat/Splat.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461;net472</TargetFrameworks>
<AssemblyName>Splat</AssemblyName>
<RootNamespace>Splat</RootNamespace>
<Authors>.NET Foundation and Contributors</Authors>
Expand All @@ -12,7 +12,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<ItemGroup Condition=" $(TargetFramework.StartsWith('net46')) ">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
</Project>

0 comments on commit 82d3cb6

Please sign in to comment.