Skip to content

Commit e77a403

Browse files
chore: add nuget pack (#96)
1 parent 45d1ae4 commit e77a403

File tree

6 files changed

+28
-51
lines changed

6 files changed

+28
-51
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
language: csharp
2-
solution: CSharpHTTPClient/CSharpHTTPClient.sln
3-
env:
4-
matrix:
5-
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=
2+
63
script:
74
- make test
5+
6+
after_success:
7+
- bash <(curl -s https://codecov.io/bash)
8+
89
deploy:
910
skip_cleanup: true
1011
provider: script
1112
script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg -ApiKey $NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
1213
on:
1314
branch: master
1415
tags: true
15-
after_success:
16-
- bash <(curl -s https://codecov.io/bash)

CSharpHTTPClient/CSharpHTTPClient.csproj

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,8 @@
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
5-
<VersionPrefix>3.4.2</VersionPrefix>
6-
<AssemblyName>SendGrid.CSharp.HTTP.Client</AssemblyName>
7-
<Authors>Elmer Thomas;Twilio DX Team</Authors>
8-
<Company>Twilio SendGrid</Company>
9-
<Product>Twilio SendGrid</Product>
10-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
11-
<PackageProjectUrl>https://sendgrid.com/</PackageProjectUrl>
12-
<RepositoryUrl>https://github.com/sendgrid/csharp-http-client.git</RepositoryUrl>
13-
<RepositoryType>git</RepositoryType>
14-
<PackageIconUrl>https://sendgrid.com/wp-content/themes/sgdotcom/pages/resource/brand//2016/SendGrid-Logomark.png</PackageIconUrl>
15-
<PackageDescription>Quickly and easily access any REST or REST-like API using a fluent interface via method chaining and reflection.</PackageDescription>
16-
<PackageReleaseNotes>Please see: https://github.com/sendgrid/csharp-http-client/releases</PackageReleaseNotes>
17-
<PackageTags>Twilio;SendGrid;Email;Mail;Microsoft;Azure;Transactional;.NET Core</PackageTags>
18-
<Copyright>Twilio SendGrid, Inc. 2020</Copyright>
5+
<Authors>Twilio</Authors>
6+
<Description>A Simple Fluent REST API Client.</Description>
197
</PropertyGroup>
208
<PropertyGroup>
219
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -76,7 +64,8 @@
7664
</ItemGroup>
7765
<ItemGroup>
7866
<None Include="App.config" />
79-
<None Include="csharphttpclient.snk" />
67+
<None Include="../csharphttpclient.snk" />
68+
<None Include="SendGridCSharpHTTPClient.nuspec" />
8069
</ItemGroup>
8170
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8271
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

CSharpHTTPClient/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("Twilio SendGrid")]
1111
[assembly: AssemblyProduct("SendGrid.CSharp.HTTP.Client")]
12-
[assembly: AssemblyCopyright("Copyright © 2019")]
13-
[assembly: AssemblyTrademark("Twilio SendGrid")]
14-
[assembly: AssemblyCulture("")]
12+
[assembly: AssemblyCopyright("Copyright Twilio SendGrid 2020")]
1513

1614
// Setting ComVisible to false makes the types in this assembly not visible
1715
// to COM components. If you need to access a type in this assembly from
@@ -20,16 +18,3 @@
2018

2119
// The following GUID is for the ID of the typelib if this project is exposed to COM
2220
[assembly: Guid("26c4841f-ec62-4ec7-b16e-3a7386ea36dc")]
23-
24-
// Version information for an assembly consists of the following four values:
25-
//
26-
// Major Version
27-
// Minor Version
28-
// Build Number
29-
// Revision
30-
//
31-
// You can specify all the values or you can default the Build and Revision Numbers
32-
// by using the '*' as shown below:
33-
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("3.4.1")]
35-
[assembly: AssemblyFileVersion("3.4.1")]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>SendGrid.CSharp.HTTP.Client</id>
5+
<authors>$authors$</authors>
6+
<title>$title$</title>
7+
<owners>$authors$</owners>
8+
<version>3.4.2</version>
9+
<projectUrl>https://sendgrid.com/</projectUrl>
10+
<iconUrl>https://sendgrid.com/wp-content/themes/sgdotcom/pages/resource/brand//2016/SendGrid-Logomark.png</iconUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<copyright>Copyright Twilio SendGrid 2020</copyright>
13+
<description>$description$</description>
14+
<tags>Twilio SendGrid Email Mail Microsoft Azure Transactional .NET Core</tags>
15+
</metadata>
16+
</package>

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ install:
77
test: install
88
xbuild /p:Configuration=Release CSharpHTTPClient/CSharpHTTPClient.sln
99
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None
10+
nuget pack ./CSharpHTTPClient/CSharpHTTPClient.csproj -Properties Configuration=Release
1011
curl -s https://codecov.io/bash > .codecov
1112
chmod +x .codecov
1213
./.codecov
13-

UnitTest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("UnitTest")]
13-
[assembly: AssemblyCopyright("Copyright © 2019")]
13+
[assembly: AssemblyCopyright("Copyright Twilio SendGrid © 2020")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -22,15 +22,3 @@
2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
2323
[assembly: Guid("df845c59-4b39-4a8a-ac89-e5336b57076b")]
2424

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.4.1")]
36-
[assembly: AssemblyFileVersion("3.4.1")]

0 commit comments

Comments
 (0)