diff --git a/.gitignore b/.gitignore index d37669d50..17ba00d00 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,5 @@ SendGrid/SendGrid.userprefs SendGrid/packages/ SendGrid/TestResult.xml SendGrid/SendGrid.sln.VisualState.xml - -*.snk \ No newline at end of file +*.pfx +*.PublicKey \ No newline at end of file diff --git a/SendGrid/SendGrid.sln b/SendGrid/SendGrid.sln index 030ed4710..476f63930 100644 --- a/SendGrid/SendGrid.sln +++ b/SendGrid/SendGrid.sln @@ -52,13 +52,13 @@ Global {0319E73A-7039-4858-B047-1EDF88BB6BD1}.Release|Mixed Platforms.Build.0 = BuildNet45|Any CPU {0319E73A-7039-4858-B047-1EDF88BB6BD1}.Release|x86.ActiveCfg = Release|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.BuildNet45|Any CPU.ActiveCfg = BuildNet45|Any CPU - {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.BuildNet45|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.BuildNet45|Mixed Platforms.ActiveCfg = Release|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.BuildNet45|x86.ActiveCfg = BuildNet45|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|Mixed Platforms.ActiveCfg = Release|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Debug|x86.ActiveCfg = Debug|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {F39ADCE7-63B5-406D-9BE8-C407920B6B8F}.Release|x86.ActiveCfg = Release|Any CPU {3C687BEF-FF50-44AD-8315-2D4237281AF8}.BuildNet45|Any CPU.ActiveCfg = BuildNet45|Any CPU {3C687BEF-FF50-44AD-8315-2D4237281AF8}.BuildNet45|Any CPU.Build.0 = BuildNet45|Any CPU diff --git a/SendGrid/SendGrid/SendGrid.csproj b/SendGrid/SendGrid/SendGrid.csproj index 8bbed1363..d9645d0aa 100644 --- a/SendGrid/SendGrid/SendGrid.csproj +++ b/SendGrid/SendGrid/SendGrid.csproj @@ -36,6 +36,12 @@ + + true + + + sendgrid-csharp.snk + ..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll @@ -63,6 +69,7 @@ + diff --git a/SendGrid/SendGrid/sendgrid-csharp.snk b/SendGrid/SendGrid/sendgrid-csharp.snk new file mode 100644 index 000000000..aff294450 Binary files /dev/null and b/SendGrid/SendGrid/sendgrid-csharp.snk differ diff --git a/SendGrid/SendGridMail/Mail.csproj b/SendGrid/SendGridMail/Mail.csproj index 154fb43d3..85ee4a37a 100644 --- a/SendGrid/SendGridMail/Mail.csproj +++ b/SendGrid/SendGridMail/Mail.csproj @@ -91,7 +91,7 @@ false - false + true sendgrid-csharp.snk diff --git a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs index bf0d7b35c..5ca685d32 100644 --- a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs +++ b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs @@ -26,16 +26,26 @@ [assembly: Guid("193fa200-8430-4206-aacd-2d2bb2dfa6cf")] #if (BUILD) -[assembly: InternalsVisibleTo("Tests")] +[assembly: InternalsVisibleTo("Tests," + "" + + "PublicKey=0024000004800000940000000602000000240000525341310004000001000100812ec26a66c8e0" + + "8c790704ac4b46bcc9da9f4bca4da0ec7c06ce6dcd73baeb2c5525f36a237b253e80e16febb4c0" + + "52f50734d5e1cf3bf478d9c88f0f69df53b47306419182983bc35c33c3bafb5e90b9bd7aa7b9a9" + + "da09abe3667d50db891012e077e4b9aefe9799a58222fa67127c230219755d7670073c7463d90c" + + "f9e79dba")] #elif (DEBUG) -[assembly: InternalsVisibleTo("Tests")] +[assembly: InternalsVisibleTo("Tests," + "" + + "PublicKey=0024000004800000940000000602000000240000525341310004000001000100812ec26a66c8e0" + + "8c790704ac4b46bcc9da9f4bca4da0ec7c06ce6dcd73baeb2c5525f36a237b253e80e16febb4c0" + + "52f50734d5e1cf3bf478d9c88f0f69df53b47306419182983bc35c33c3bafb5e90b9bd7aa7b9a9" + + "da09abe3667d50db891012e077e4b9aefe9799a58222fa67127c230219755d7670073c7463d90c" + + "f9e79dba")] #else [assembly: InternalsVisibleTo("Tests," + "" + - "PublicKey=00240000048000009400000006020000002400005253413100040000010001004126bffd5a4461" + - "e915193b2695401cee8d67bb14b252a34e5230e6468582f108aafbe31d39f2059240461d622e86" + - "2a294169d5f2659efe0d68b30d7ceee310356c70b54ece3c8c69bbd9db86e07c34ff4fd5d7528b" + - "3ddf078d272025cb7a588030c78020f5eb91872b38dc2832f561fe184715bb8edb6f0b3b644de5" + - "2bc588ae")] + "PublicKey=0024000004800000940000000602000000240000525341310004000001000100812ec26a66c8e0" + + "8c790704ac4b46bcc9da9f4bca4da0ec7c06ce6dcd73baeb2c5525f36a237b253e80e16febb4c0" + + "52f50734d5e1cf3bf478d9c88f0f69df53b47306419182983bc35c33c3bafb5e90b9bd7aa7b9a9" + + "da09abe3667d50db891012e077e4b9aefe9799a58222fa67127c230219755d7670073c7463d90c" + + "f9e79dba")] #endif // Version information for an assembly consists of the following four values: // diff --git a/SendGrid/SendGridMail/SendGridMail.pfx b/SendGrid/SendGridMail/SendGridMail.pfx new file mode 100644 index 000000000..867e49967 Binary files /dev/null and b/SendGrid/SendGridMail/SendGridMail.pfx differ diff --git a/SendGrid/SendGridMail/sendgrid-csharp.snk b/SendGrid/SendGridMail/sendgrid-csharp.snk new file mode 100644 index 000000000..aff294450 Binary files /dev/null and b/SendGrid/SendGridMail/sendgrid-csharp.snk differ diff --git a/SendGrid/Tests/Tests.csproj b/SendGrid/Tests/Tests.csproj index 94882c1ed..ff31ea6e2 100644 --- a/SendGrid/Tests/Tests.csproj +++ b/SendGrid/Tests/Tests.csproj @@ -48,6 +48,12 @@ Library + + true + + + sendgrid-csharp.snk + diff --git a/SendGrid/Tests/Transport/TestWebApi.cs b/SendGrid/Tests/Transport/TestWebApi.cs index a06ca6965..5e09b9d33 100644 --- a/SendGrid/Tests/Transport/TestWebApi.cs +++ b/SendGrid/Tests/Transport/TestWebApi.cs @@ -15,6 +15,7 @@ internal class TestWebApi private const string TestUsername = "username"; private const string TestPassword = "password"; + [Test] public void TestFetchFileBodies() { @@ -78,5 +79,6 @@ public void TestFetchFormParams() Assert.True( result.Any(r => r.Key == "x-smtpapi" && r.Value == String.Format("{{\"category\" : \"{0}\"}}", categoryName))); } + } } \ No newline at end of file diff --git a/SendGrid/Tests/sendgrid-csharp.snk b/SendGrid/Tests/sendgrid-csharp.snk new file mode 100644 index 000000000..aff294450 Binary files /dev/null and b/SendGrid/Tests/sendgrid-csharp.snk differ diff --git a/SendGrid/UnitTest/UnitTests.csproj b/SendGrid/UnitTest/UnitTests.csproj index 1c6f0fce3..d6ef8ae65 100644 --- a/SendGrid/UnitTest/UnitTests.csproj +++ b/SendGrid/UnitTest/UnitTests.csproj @@ -35,6 +35,12 @@ prompt 4 + + true + + + sendgrid-csharp.snk + @@ -85,6 +91,7 @@ + diff --git a/SendGrid/UnitTest/sendgrid-csharp.snk b/SendGrid/UnitTest/sendgrid-csharp.snk new file mode 100644 index 000000000..aff294450 Binary files /dev/null and b/SendGrid/UnitTest/sendgrid-csharp.snk differ