Skip to content

Added support for .Net Core. Fixes #1 #3

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

Closed
wants to merge 4 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
26 changes: 11 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
CSharpHTTPClient/CSharpHTTPClient.sln.DotSettings.user
CSharpHTTPClient/bin/
Example/bin/
CSharpHTTPClient/obj/
Example/obj/
UnitTest/bin/
UnitTest/obj/
*.suo
CSharpHTTPClient/*/bin/
CSharpHTTPClient/*/obj/
obj
bin
.vs
project.lock.json
TestResult.xml
.DS_store
CSharpHTTPClient/CSharpHTTPClient.userprefs
CSharpHTTPClient/packages/
CSharpHTTPClient/CSharpHTTPClient.sln.VisualState.xml
*.pfx
*.PublicKey
CSharpHTTPClient.userprefs
*.sln.DotSettings.user
*.xproj.user
*.suo
*.PublicKey
*.pfx
55 changes: 38 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
language: csharp
solution: CSharpHTTPClient/CSharpHTTPClient.sln

#dotnet cli require Ubuntu 14.04
sudo: required
dist: trusty

addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g

os:
- linux

env:
matrix:
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=
install:
- nuget restore CSharpHTTPClient/CSharpHTTPClient.sln
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
matrix:
- CLI_VERSION=1.0.0-preview2-003121
- CLI_VERSION=Latest

matrix:
allow_failures:
- env: CLI_VERSION=Latest

before_install:
# Download script to install dotnet cli
- if test "$CLI_OBTAIN_URL" == ""; then export CLI_OBTAIN_URL="https://github.com/raw/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh"; fi
- curl -L --create-dirs $CLI_OBTAIN_URL -o ./scripts/obtain/install.sh
- find ./scripts -name "*.sh" -exec chmod +x {} \;
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
# use bash to workaround bug https://github.com/dotnet/cli/issues/1725
- sudo bash ./scripts/obtain/install.sh --channel "preview" --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path
# add dotnet to PATH
- export PATH="$DOTNET_INSTALL_DIR:$PATH"

script:
- xbuild /p:Configuration=Release CSharpHTTPClient/CSharpHTTPClient.sln
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None
notifications:
hipchat:
rooms:
secure: T8r/eNzevZXJDmSK7ZKG+t/Vx0cENHIMWVuKbt3RSYbXl6QsWv8UTPamFSkLP0zbcCyGQ7d+QKaEc18ffCtiBV9MXPy8Q1XFGzKxr5/GnwMx4p0ArTqbFLCyl3JuXBmCGouWG+ulb9eOGUFc6L/4p2cwAfXf2oTcXYqosBnfoHg=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
format: html
- ./build.sh
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## [2.0.2] - 2016-06-16
### Added
- Fix async, per https://github.com/sendgrid/sendgrid-csharp/issues/235

## [2.0.1] - 2016-06-03
### Added
- Sign assembly with a strong name

## [2.0.0] - 2016-06-03
### Changed
- Made the Response variables non-redundant. e.g. response.ResponseBody becomes response.Body

## [1.0.2] - 2016-03-17
### Added
- We are live!
- We are live!
48 changes: 48 additions & 0 deletions CSharpHTTPClient.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{671B0509-1433-4E96-B89F-6E25F55B2B6E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{04880DC9-F242-43EF-A157-C868CEC92957}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "CSharpHTTPClient", "src\CSharpHTTPClient\CSharpHTTPClient.xproj", "{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{7EF30ACB-B177-41CE-8E18-E886D2BCB500}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "UnitTest", "test\UnitTest\UnitTest.xproj", "{98AE955C-242B-4300-9080-BE4F01CFF1D3}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Example", "src\Example\Example.xproj", "{5AD0DF79-66EB-4F44-B569-B7EE84E00D40}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F}.Release|Any CPU.Build.0 = Release|Any CPU
{98AE955C-242B-4300-9080-BE4F01CFF1D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{98AE955C-242B-4300-9080-BE4F01CFF1D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{98AE955C-242B-4300-9080-BE4F01CFF1D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{98AE955C-242B-4300-9080-BE4F01CFF1D3}.Release|Any CPU.Build.0 = Release|Any CPU
{5AD0DF79-66EB-4F44-B569-B7EE84E00D40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5AD0DF79-66EB-4F44-B569-B7EE84E00D40}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5AD0DF79-66EB-4F44-B569-B7EE84E00D40}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5AD0DF79-66EB-4F44-B569-B7EE84E00D40}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D7B5CD21-3F54-432B-B9F7-4CE2F81FFA5F} = {671B0509-1433-4E96-B89F-6E25F55B2B6E}
{98AE955C-242B-4300-9080-BE4F01CFF1D3} = {7EF30ACB-B177-41CE-8E18-E886D2BCB500}
{5AD0DF79-66EB-4F44-B569-B7EE84E00D40} = {671B0509-1433-4E96-B89F-6E25F55B2B6E}
EndGlobalSection
EndGlobal
6 changes: 0 additions & 6 deletions CSharpHTTPClient/App.config

This file was deleted.

76 changes: 0 additions & 76 deletions CSharpHTTPClient/CSharpHTTPClient.csproj

This file was deleted.

34 changes: 0 additions & 34 deletions CSharpHTTPClient/CSharpHTTPClient.sln

This file was deleted.

6 changes: 0 additions & 6 deletions Example/App.config

This file was deleted.

68 changes: 0 additions & 68 deletions Example/Example.csproj

This file was deleted.

Loading