Skip to content

Commit

Permalink
added net4.8 support (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 authored Jun 24, 2024
1 parent 035130b commit 6316b64
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Razorpay.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Razorpay</id>
<version>3.1.2</version>
<version>3.1.3</version>
<authors>razorpay</authors>
<owners>razorpay</owners>
<licenseUrl>https://github.com/razorpay/razorpay-dot-net/blob/master/licence.txt</licenseUrl>
Expand All @@ -22,5 +22,6 @@
<file src="net40/bin/Release/Razorpay.dll" target="lib/net40/Razorpay.dll" />
<file src="net45/bin/Release/Razorpay.dll" target="lib/net45/Razorpay.dll" />
<file src="net47/bin/Release/Razorpay.dll" target="lib/net47/Razorpay.dll" />
<file src="net48/bin/Release/Razorpay.dll" target="lib/net48/Razorpay.dll" />
</files>
</package>
36 changes: 36 additions & 0 deletions net48/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Razorpay")]
[assembly: AssemblyDescription("Razorpay SDK for .Net")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Razorpay Software Private Limited")]
[assembly: AssemblyProduct("Razorpay.API")]
[assembly: AssemblyCopyright("Copyright © 2015 - 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("35244cca-2467-4d21-aa86-a37791358950")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
198 changes: 198 additions & 0 deletions net48/RazorpayClient48.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{35244CCA-2467-4D21-AA86-A37791358950}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Razorpay.Api</RootNamespace>
<AssemblyName>Razorpay</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
<HintPath>packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.IO.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>packages\System.IO.FileSystem.4.0.0\lib\net46\System.IO.FileSystem.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.IO.FileSystem.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>packages\System.IO.FileSystem.Primitives.4.0.0\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\src\Entity.cs">
<Link>Entity.cs</Link>
</Compile>
<Compile Include="..\src\Errors\BadRequestError.cs">
<Link>Errors\BadRequestError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\BaseError.cs">
<Link>Errors\BaseError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\ErrorCodes.cs">
<Link>Errors\ErrorCodes.cs</Link>
</Compile>
<Compile Include="..\src\Errors\GatewayError.cs">
<Link>Errors\GatewayError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\ServerError.cs">
<Link>Errors\ServerError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\SignatureVerificationError.cs">
<Link>Errors\SignatureVerificationError.cs</Link>
</Compile>
<Compile Include="..\src\Order.cs">
<Link>Order.cs</Link>
</Compile>
<Compile Include="..\src\Payment.cs">
<Link>Payment.cs</Link>
</Compile>
<Compile Include="..\src\RazorpayClient.cs">
<Link>RazorpayClient.cs</Link>
</Compile>
<Compile Include="..\src\Refund.cs">
<Link>Refund.cs</Link>
</Compile>
<Compile Include="..\src\Token.cs">
<Link>Token.cs</Link>
</Compile>
<Compile Include="..\src\Card.cs">
<Link>Card.cs</Link>
</Compile>
<Compile Include="..\src\Invoice.cs">
<Link>Invoice.cs</Link>
</Compile>
<Compile Include="..\src\Customer.cs">
<Link>Customer.cs</Link>
</Compile>
<Compile Include="..\src\Transfer.cs">
<Link>Transfer.cs</Link>
</Compile>
<Compile Include="..\src\Reversal.cs">
<Link>Reversal.cs</Link>
</Compile>
<Compile Include="..\src\RestClient.cs">
<Link>RestClient.cs</Link>
</Compile>
<Compile Include="..\src\Utils.cs">
<Link>Utils.cs</Link>
</Compile>
<Compile Include="..\src\Plan.cs">
<Link>Plan.cs</Link>
</Compile>
<Compile Include="..\src\Subscription.cs">
<Link>Subscription.cs</Link>
</Compile>
<Compile Include="..\src\Addon.cs">
<Link>Addon.cs</Link>
</Compile>
<Compile Include="..\src\VirtualAccount.cs">
<Link>VirtualAccount.cs</Link>
</Compile>
<Compile Include="..\src\FundAccount.cs">
<Link>FundAccount.cs</Link>
</Compile>
<Compile Include="..\src\BankTransfer.cs">
<Link>BankTransfer.cs</Link>
</Compile>
<Compile Include="..\src\Product.cs">
<Link>Product.cs</Link>
</Compile>
<Compile Include="..\src\Iin.cs">
<Link>Iin.cs</Link>
</Compile>
<Compile Include="..\src\QrCode.cs">
<Link>QrCode.cs</Link>
</Compile>
<Compile Include="..\src\PaymentLink.cs">
<Link>PaymentLink.cs</Link>
</Compile>
<Compile Include="..\src\Settlement.cs">
<Link>Settlement.cs</Link>
</Compile>
<Compile Include="..\src\Tnc.cs">
<Link>Tnc.cs</Link>
</Compile>
<Compile Include="..\src\Item.cs">
<Link>Item.cs</Link>
</Compile>
<Compile Include="..\src\Account.cs">
<Link>Account.cs</Link>
</Compile>
<Compile Include="..\src\Stakeholder.cs">
<Link>Stakeholder.cs</Link>
</Compile>
<Compile Include="..\src\Webhook.cs">
<Link>Webhook.cs</Link>
</Compile>
<Compile Include="..\src\Method.cs">
<Link>Method.cs</Link>
</Compile>
<Compile Include="..\src\Dispute.cs">
<Link>Dispute.cs</Link>
</Compile>
<Compile Include="..\src\BankAccount.cs">
<Link>BankAccount.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="..\src\HttpMethod.cs">
<Link>HttpMethod.cs</Link>
</Compile>
<Compile Include="..\src\OAuthTokenClient.cs">
<Link>OAuthTokenClient.cs</Link>
</Compile>
<Compile Include="..\src\PayloadValidator.cs">
<Link>PayloadValidator.cs</Link>
</Compile>
<Compile Include="..\src\ValidationConfig.cs">
<Link>ValidationConfig.cs</Link>
</Compile>
<Compile Include="..\src\ValidationType.cs">
<Link>ValidationType.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
25 changes: 25 additions & 0 deletions net48/RazorpayClient48.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33717.318
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorpayClient48", "RazorpayClient48.csproj", "{35244CCA-2467-4D21-AA86-A37791358950}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{35244CCA-2467-4D21-AA86-A37791358950}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35244CCA-2467-4D21-AA86-A37791358950}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35244CCA-2467-4D21-AA86-A37791358950}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35244CCA-2467-4D21-AA86-A37791358950}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {459C7A67-40EE-4879-805F-2AE275FB2637}
EndGlobalSection
EndGlobal
5 changes: 5 additions & 0 deletions net48/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
<package id="Portable.BouncyCastle" version="1.9.0" targetFramework="net48" />
</packages>

0 comments on commit 6316b64

Please sign in to comment.