Skip to content

Commit

Permalink
Adicionando pacotes nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Magno committed May 21, 2018
1 parent 1a61d01 commit 8add512
Show file tree
Hide file tree
Showing 10 changed files with 197 additions and 14 deletions.
20 changes: 20 additions & 0 deletions Package.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>Package</id>
<version>1.0.0</version>
<authors>NikolasMagno</authors>
<owners>NikolasMagno</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
<iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package description</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>Tag1 Tag2</tags>
<dependencies>
<dependency id="SampleDependency" version="1.0" />
</dependencies>
</metadata>
</package>
16 changes: 16 additions & 0 deletions WhenResponse.RestSharp.NetCore/Extension.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace WhenResponse.RestSharp
{
using global::RestSharp;
using System;

public static class Extension
{
public static IRestResponse When(this IRestResponse response, Func<IRestResponse,bool> condition, Action<IRestResponse> action)
{
if (condition(response))
action(response);

return response;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>A simple library to make response treatment clean and fluent
https://github.com/nikolasmagno/WhenResponse</Description>
<PackageLicenseUrl>https://github.com/nikolasmagno/WhenResponse</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/nikolasmagno/WhenResponse</PackageProjectUrl>
<RepositoryUrl>https://github.com/nikolasmagno/WhenResponse</RepositoryUrl>
<AssemblyName>WhenResponse.RestSharp.NetCore</AssemblyName>
<RootNamespace>WhenResponse.RestSharp</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RestSharp" Version="106.2.1" />
</ItemGroup>

</Project>
36 changes: 36 additions & 0 deletions WhenResponse.RestSharp/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("WhenResponse.RestSharp")]
[assembly: AssemblyDescription("A simple library to make response treatment clean and fluent")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("WhenResponse.RestSharp")]
[assembly: AssemblyProduct("WhenResponse.RestSharp")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[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("d8c8681f-c978-47c3-a148-cec7ad05e25b")]

// 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")]
60 changes: 53 additions & 7 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,57 @@
<Project Sdk="Microsoft.NET.Sdk">

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D8C8681F-C978-47C3-A148-CEC7AD05E25B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WhenResponse.RestSharp</RootNamespace>
<AssemblyName>WhenResponse.RestSharp</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</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>
<Prefer32Bit>false</Prefer32Bit>
</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>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="RestSharp, Version=105.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.105.0.0\lib\net4\RestSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<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="Extension.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="RestSharp" Version="106.2.1" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>

</Project>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
19 changes: 19 additions & 0 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.csproj.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>.\WhenResponse.RestSharp\WhenResponse.RestSharp.csproj</id>
<version>1.0.0</version>
<authors>NikolasMagno</authors>
<owners>NikolasMagno</owners>
<licenseUrl>https://github.com/nikolasmagno/WhenResponse</licenseUrl>
<projectUrl>https://github.com/nikolasmagno/WhenResponse</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple library to make response treatment clean and fluent</description>
<releaseNotes>A simple library to make response treatment clean and fluent</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>Tag1 Tag2</tags>
<dependencies>
<dependency id="RestSharp" />
</dependencies>
</metadata>
</package>
17 changes: 17 additions & 0 deletions WhenResponse.RestSharp/WhenResponse.RestSharp.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>Nikolas Magno</authors>
<owners>Nikolas Magno</owners>
<licenseUrl>https://github.com/nikolasmagno/WhenResponse</licenseUrl>
<projectUrl>https://github.com/nikolasmagno/WhenResponse</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple library to make response treatment clean and fluent</description>
<releaseNotes>A simple library to make response treatment clean and fluent</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>Rest RestSharp</tags>
</metadata>
</package>
4 changes: 4 additions & 0 deletions WhenResponse.RestSharp/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="RestSharp" version="105.0.0" targetFramework="net45" />
</packages>
2 changes: 1 addition & 1 deletion WhenResponse.Test/WhenResponse.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\WhenResponse.RestSharp\WhenResponse.RestSharp.csproj" />
<ProjectReference Include="..\WhenResponse.RestSharp\WhenResponse.RestSharp.NetCore.csproj" />
</ItemGroup>

</Project>
18 changes: 12 additions & 6 deletions WhenResponse.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.2037
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WhenResponse.RestSharp", "WhenResponse.RestSharp\WhenResponse.RestSharp.csproj", "{01BE7116-9803-4289-B39D-AD57DEC02BDD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WhenResponse.Test", "WhenResponse.Test\WhenResponse.Test.csproj", "{654BC4A8-087F-4700-BE52-1FAD94C58399}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WhenResponse.Test", "WhenResponse.Test\WhenResponse.Test.csproj", "{654BC4A8-087F-4700-BE52-1FAD94C58399}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WhenResponse.RestSharp.NetCore", "WhenResponse.RestSharp.NetCore\WhenResponse.RestSharp.NetCore.csproj", "{34BB1CD5-E19A-402E-B552-DAFB9A94B0D9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WhenResponse.RestSharp", "WhenResponse.RestSharp\WhenResponse.RestSharp.csproj", "{D8C8681F-C978-47C3-A148-CEC7AD05E25B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{01BE7116-9803-4289-B39D-AD57DEC02BDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01BE7116-9803-4289-B39D-AD57DEC02BDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01BE7116-9803-4289-B39D-AD57DEC02BDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01BE7116-9803-4289-B39D-AD57DEC02BDD}.Release|Any CPU.Build.0 = Release|Any CPU
{654BC4A8-087F-4700-BE52-1FAD94C58399}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{654BC4A8-087F-4700-BE52-1FAD94C58399}.Debug|Any CPU.Build.0 = Debug|Any CPU
{654BC4A8-087F-4700-BE52-1FAD94C58399}.Release|Any CPU.ActiveCfg = Release|Any CPU
{654BC4A8-087F-4700-BE52-1FAD94C58399}.Release|Any CPU.Build.0 = Release|Any CPU
{34BB1CD5-E19A-402E-B552-DAFB9A94B0D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34BB1CD5-E19A-402E-B552-DAFB9A94B0D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34BB1CD5-E19A-402E-B552-DAFB9A94B0D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34BB1CD5-E19A-402E-B552-DAFB9A94B0D9}.Release|Any CPU.Build.0 = Release|Any CPU
{D8C8681F-C978-47C3-A148-CEC7AD05E25B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D8C8681F-C978-47C3-A148-CEC7AD05E25B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D8C8681F-C978-47C3-A148-CEC7AD05E25B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D8C8681F-C978-47C3-A148-CEC7AD05E25B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 8add512

Please sign in to comment.