Skip to content
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

Migrated projects to target netstandart2.0 #13

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ local.properties
*.suo
*.user
*.sln.docstates
.vs/

# Build results

Expand Down
35 changes: 0 additions & 35 deletions Riskified.SDK.Sample/Properties/AssemblyInfo.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Riskified.SDK.Sample/Riskified.SDK.Sample.config.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
<appSettings>
<add key="NotificationsWebhookUrl" value="[http/https]://[your url here]:[your port here]/[your webhook path]/"/>
<add key="MerchantDomain" value="[your shop domain as registered to riskified]"/>
Expand Down
83 changes: 11 additions & 72 deletions Riskified.SDK.Sample/Riskified.SDK.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,78 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.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')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{85E693D1-23B2-470C-81B9-F97B983E92AC}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Riskified.SDK.Sample</RootNamespace>
<AssemblyName>Riskified.SDK.Sample</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFramework>netcoreapp2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors />
<Company>Riskified</Company>
<Copyright>Copyright © Riskified 2012-2015</Copyright>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>Riskified.SDK.Sample.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
<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.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="NotificationServerExample.cs" />
<Compile Include="OrderTransmissionExample.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SimpleLogger.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<SubType>Designer</SubType>
</None>
<None Include="Riskified.SDK.Sample.config.example">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Riskified.SDK\Riskified.SDK.csproj">
<Project>{1BD71C22-04AD-4520-A331-C6B3E3BB7793}</Project>
<Name>Riskified.SDK</Name>
</ProjectReference>
<ProjectReference Include="..\Riskified.SDK\Riskified.SDK.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->


</Project>
35 changes: 0 additions & 35 deletions Riskified.SDK/Properties/AssemblyInfo.cs

This file was deleted.

136 changes: 13 additions & 123 deletions Riskified.SDK/Riskified.SDK.csproj
Original file line number Diff line number Diff line change
@@ -1,128 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.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')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1BD71C22-04AD-4520-A331-C6B3E3BB7793}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Riskified.SDK</RootNamespace>
<AssemblyName>Riskified.SDK</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFramework>netstandard2.0</TargetFramework>
<Company>Riskified</Company>
<Authors />
<Description>"Implementation of the Riskified API in C# (official SDK nuget release)."</Description>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<FileVersion>2.2.0.0</FileVersion>
<Copyright>Copyright © Riskified 2012-2015</Copyright>
</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>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Runtime.Serialization.Formatters.Soap" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Exceptions\RiskifiedAuthenticationException.cs" />
<Compile Include="Model\ChargebackElements\ChargebackDetails.cs" />
<Compile Include="Model\ChargebackElements\DisputeDetails.cs" />
<Compile Include="Model\OrderChargeback.cs" />
<Compile Include="Model\OrderElements\AccommodationLineItem.cs" />
<Compile Include="Model\OrderElements\ChargeFreePaymentDetails.cs" />
<Compile Include="Model\OrderElements\ClientDetails.cs" />
<Compile Include="Model\OrderElements\Custom.cs" />
<Compile Include="Model\OrderElements\DeliveredToType.cs" />
<Compile Include="Model\OrderElements\EventTicketLineItem.cs" />
<Compile Include="Model\OrderElements\ExternalStatusType.cs" />
<Compile Include="Model\IJsonSerializable.cs" />
<Compile Include="Model\Internal\OrderCheckoutWrapper.cs" />
<Compile Include="Model\Internal\OrdersWrapper.cs" />
<Compile Include="Model\Internal\OrderWrapper.cs" />
<Compile Include="Model\OrderBase.cs" />
<Compile Include="Model\OrderCheckout.cs" />
<Compile Include="Model\OrderCheckoutDenied.cs" />
<Compile Include="Model\OrderCheckoutElements\AuthorizationError.cs" />
<Compile Include="Model\OrderCheckoutElements\AuthorizationErrorCode.cs" />
<Compile Include="Model\OrderDecision.cs" />
<Compile Include="Model\OrderElements\DecisionDetails.cs" />
<Compile Include="Model\OrderElements\FulfillmentDetails.cs" />
<Compile Include="Model\OrderElements\DigitalLineItem.cs" />
<Compile Include="Model\OrderElements\IPaymentDetails.cs" />
<Compile Include="Model\OrderElements\NoChargeDetails.cs" />
<Compile Include="Model\OrderElements\Passenger.cs" />
<Compile Include="Model\OrderElements\PaypalPaymentDetails.cs" />
<Compile Include="Model\OrderElements\ProductType.cs" />
<Compile Include="Model\OrderElements\Recipient.cs" />
<Compile Include="Model\OrderElements\Seller.cs" />
<Compile Include="Model\OrderElements\SocialDetails.cs" />
<Compile Include="Model\OrderElements\FulfillmentStatusCode.cs" />
<Compile Include="Model\OrderElements\SubmissionReason.cs" />
<Compile Include="Model\OrderElements\TransportMethodType.cs" />
<Compile Include="Model\OrderElements\TravelTicketLineItem.cs" />
<Compile Include="Model\OrderFulfillment.cs" />
<Compile Include="Model\OrderNotification.cs" />
<Compile Include="Model\OrderElements\BasicAddress.cs" />
<Compile Include="Notifications\NotificationHandler.cs" />
<Compile Include="Model\AbstractOrder.cs" />
<Compile Include="Model\OrderCancellation.cs" />
<Compile Include="Model\OrderPartialRefund.cs" />
<Compile Include="Model\RefundElements\PartialRefundDetails.cs" />
<Compile Include="Utils\InputValidators.cs" />
<Compile Include="Exceptions\NotifierServerFailedToStartException.cs" />
<Compile Include="Exceptions\OrderFieldBadFormatException.cs" />
<Compile Include="Exceptions\NotifierAlreadyRunningException.cs" />
<Compile Include="Exceptions\RiskifiedException.cs" />
<Compile Include="Exceptions\RiskifiedTransactionException.cs" />
<Compile Include="Utils\HttpUtils.cs" />
<Compile Include="Logging\ILogger.cs" />
<Compile Include="Logging\LoggingServices.cs" />
<Compile Include="Model\OrderElements\Customer.cs" />
<Compile Include="Model\OrderElements\DiscountCode.cs" />
<Compile Include="Model\OrderElements\LineItem.cs" />
<Compile Include="Model\Internal\Notification.cs" />
<Compile Include="Model\OrderElements\AddressInformation.cs" />
<Compile Include="Model\Order.cs" />
<Compile Include="Model\OrderElements\CreditCardPaymentDetails.cs" />
<Compile Include="Model\OrderElements\ShippingLine.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Orders\OrdersGateway.cs" />
<Compile Include="Utils\RiskifiedEnvironment.cs" />
<Compile Include="Utils\Validations.cs" />
</ItemGroup>

<ItemGroup>
<None Include="packages.config" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.1" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>
4 changes: 0 additions & 4 deletions Riskified.SDK/packages.config

This file was deleted.

Binary file not shown.
Loading