Skip to content

Commit

Permalink
Alterando para .netcore
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Magno Braga Leite - AeC committed Aug 22, 2018
1 parent 8dde25b commit 7267123
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 287 deletions.
34 changes: 28 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/WhenResponse.Test/WhenResponse.Test.csproj"
],
"command": "dotnet build ${workspaceFolder}/",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet publish -c Release ${workspaceFolder}/",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "pack",
"command": "dotnet pack -c Release ${workspaceFolder}/",
"type": "shell",
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
4 changes: 2 additions & 2 deletions WhenResponse.RestSharp.NetCore/Extension.cs → Extension.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace WhenResponse.RestSharp
{
using global::RestSharp;
using System;
using global::RestSharp;

public static class Extension
{
public static IRestResponse When(this IRestResponse response, Func<IRestResponse,bool> condition, Action<IRestResponse> action)
public static IRestResponse When(this IRestResponse response, Func<IRestResponse, bool> condition, Action<IRestResponse> action)
{
if (condition(response))
action(response);
Expand Down
20 changes: 0 additions & 20 deletions Package.nuspec

This file was deleted.

This file was deleted.

21 changes: 21 additions & 0 deletions WhenResponse.RestSharp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks>
<Version>2.0.0</Version>
<Authors>Nikolas Magno</Authors>
<Description>A simple library to make response treatment clean and fluent</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>A NetStandard2 portable</PackageReleaseNotes>
<Copyright>https://creativecommons.org/licenses/by/4.0/</Copyright>
<PackageTags>Rest RestSharp</PackageTags>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RestSharp" Version="106.3.1" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Web" Condition="'$(TargetFramework)' == 'net452'" />
</ItemGroup>

</Project>
16 changes: 0 additions & 16 deletions WhenResponse.RestSharp/Extension.cs

This file was deleted.

36 changes: 0 additions & 36 deletions WhenResponse.RestSharp/Properties/AssemblyInfo.cs

This file was deleted.

57 changes: 0 additions & 57 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.csproj

This file was deleted.

19 changes: 0 additions & 19 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.csproj.nuspec

This file was deleted.

17 changes: 0 additions & 17 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.nuspec

This file was deleted.

4 changes: 0 additions & 4 deletions WhenResponse.RestSharp/packages.config

This file was deleted.

34 changes: 0 additions & 34 deletions WhenResponse.Test/RestSharp.cs

This file was deleted.

20 changes: 0 additions & 20 deletions WhenResponse.Test/WhenResponse.Test.csproj

This file was deleted.

37 changes: 0 additions & 37 deletions WhenResponse.sln

This file was deleted.

0 comments on commit 7267123

Please sign in to comment.