Skip to content

Only reference System.ValueTuple in net40 #960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions UnitsNet/UnitsNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>UnitsNet</RootNamespace>
<TargetFrameworks>netstandard2.0;net40</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net40;net47</TargetFrameworks>
</PropertyGroup>

<!-- SourceLink -->
Expand All @@ -41,10 +41,14 @@
<AssemblyName>UnitsNet</AssemblyName>
</PropertyGroup>

<!-- NuGet references that work for both signed and unsigned -->
<!-- NuGet references that work for all TargetFrameworks, both signed and unsigned. -->
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<!-- System.ValueTuple is only required for net40 target. -->
<ItemGroup Condition="'$(TargetFramework)' == 'net40'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

Expand Down