Skip to content

Commit

Permalink
Add net461 as a target framework (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe authored Mar 31, 2020
1 parent a12fe02 commit 7149d88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 2 additions & 0 deletions src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class SystemNetHttpClient : IHttpClient
private const string StripeNetTargetFramework =
#if NETSTANDARD2_0
"netstandard2.0"
#elif NET461
"net461"
#elif NET45
"net45"
#else
Expand Down
24 changes: 10 additions & 14 deletions src/Stripe.net/Stripe.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<VersionPrefix>35.10.0</VersionPrefix>
<Version>35.10.0</Version>
<Authors>Stripe, Jayme Davis</Authors>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net461;net45</TargetFrameworks>
<AssemblyName>Stripe.net</AssemblyName>
<PackageId>Stripe.net</PackageId>
<PackageTags>stripe;payment;credit;cards;money;gateway;paypal;braintree</PackageTags>
Expand Down Expand Up @@ -38,24 +38,20 @@
<CodeAnalysisRuleSet>..\_stylecop\StyleCopRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data.Linq" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.WebRequest" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<Reference Include="System.Configuration" />
<Reference Include="System.Net.Http" />
</ItemGroup>

</Project>
7 changes: 5 additions & 2 deletions src/StripeTests/StripeTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="..\..\netfx.props" />

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;netcoreapp3.1;net45</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;netcoreapp2.0;net461;net45</TargetFrameworks>
<AssemblyName>StripeTests</AssemblyName>
<PackageId>StripeTests</PackageId>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
Expand All @@ -26,9 +26,12 @@
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

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

<ItemGroup>
Expand Down

0 comments on commit 7149d88

Please sign in to comment.