diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | SendGrid/SendGrid.sln | 6 | ||||
-rw-r--r-- | SendGrid/SendGrid/SendGrid.csproj | 7 | ||||
-rw-r--r-- | SendGrid/SendGrid/sendgrid-csharp.snk | bin | 0 -> 596 bytes | |||
-rw-r--r-- | SendGrid/SendGridMail/Mail.csproj | 2 | ||||
-rw-r--r-- | SendGrid/SendGridMail/Properties/AssemblyInfo.cs | 24 | ||||
-rw-r--r-- | SendGrid/SendGridMail/SendGridMail.pfx | bin | 0 -> 1709 bytes | |||
-rw-r--r-- | SendGrid/SendGridMail/sendgrid-csharp.snk | bin | 0 -> 596 bytes | |||
-rw-r--r-- | SendGrid/Tests/Tests.csproj | 6 | ||||
-rw-r--r-- | SendGrid/Tests/Transport/TestWebApi.cs | 2 | ||||
-rw-r--r-- | SendGrid/Tests/sendgrid-csharp.snk | bin | 0 -> 596 bytes | |||
-rw-r--r-- | SendGrid/UnitTest/UnitTests.csproj | 7 | ||||
-rw-r--r-- | SendGrid/UnitTest/sendgrid-csharp.snk | bin | 0 -> 596 bytes |
13 files changed, 45 insertions, 13 deletions
@@ -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 030ed47..476f639 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 8bbed13..d9645d0 100644 --- a/SendGrid/SendGrid/SendGrid.csproj +++ b/SendGrid/SendGrid/SendGrid.csproj @@ -36,6 +36,12 @@ <PropertyGroup> <StartupObject /> </PropertyGroup> + <PropertyGroup> + <SignAssembly>true</SignAssembly> + </PropertyGroup> + <PropertyGroup> + <AssemblyOriginatorKeyFile>sendgrid-csharp.snk</AssemblyOriginatorKeyFile> + </PropertyGroup> <ItemGroup> <Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> @@ -63,6 +69,7 @@ <ItemGroup> <None Include="App.config" /> <None Include="packages.config" /> + <None Include="sendgrid-csharp.snk" /> </ItemGroup> <ItemGroup /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> diff --git a/SendGrid/SendGrid/sendgrid-csharp.snk b/SendGrid/SendGrid/sendgrid-csharp.snk Binary files differnew file mode 100644 index 0000000..aff2944 --- /dev/null +++ b/SendGrid/SendGrid/sendgrid-csharp.snk diff --git a/SendGrid/SendGridMail/Mail.csproj b/SendGrid/SendGridMail/Mail.csproj index 154fb43..85ee4a3 100644 --- a/SendGrid/SendGridMail/Mail.csproj +++ b/SendGrid/SendGridMail/Mail.csproj @@ -91,7 +91,7 @@ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
- <SignAssembly>false</SignAssembly>
+ <SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>sendgrid-csharp.snk</AssemblyOriginatorKeyFile>
diff --git a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs index bf0d7b3..5ca685d 100644 --- a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs +++ b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs @@ -26,16 +26,26 @@ using System.Runtime.InteropServices; [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 Binary files differnew file mode 100644 index 0000000..867e499 --- /dev/null +++ b/SendGrid/SendGridMail/SendGridMail.pfx diff --git a/SendGrid/SendGridMail/sendgrid-csharp.snk b/SendGrid/SendGridMail/sendgrid-csharp.snk Binary files differnew file mode 100644 index 0000000..aff2944 --- /dev/null +++ b/SendGrid/SendGridMail/sendgrid-csharp.snk diff --git a/SendGrid/Tests/Tests.csproj b/SendGrid/Tests/Tests.csproj index 94882c1..ff31ea6 100644 --- a/SendGrid/Tests/Tests.csproj +++ b/SendGrid/Tests/Tests.csproj @@ -48,6 +48,12 @@ <PropertyGroup>
<OutputType>Library</OutputType>
</PropertyGroup>
+ <PropertyGroup>
+ <SignAssembly>true</SignAssembly>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AssemblyOriginatorKeyFile>sendgrid-csharp.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
diff --git a/SendGrid/Tests/Transport/TestWebApi.cs b/SendGrid/Tests/Transport/TestWebApi.cs index a06ca69..5e09b9d 100644 --- a/SendGrid/Tests/Transport/TestWebApi.cs +++ b/SendGrid/Tests/Transport/TestWebApi.cs @@ -15,6 +15,7 @@ namespace Transport private const string TestUsername = "username";
private const string TestPassword = "password";
+
[Test]
public void TestFetchFileBodies()
{
@@ -78,5 +79,6 @@ namespace Transport 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 Binary files differnew file mode 100644 index 0000000..aff2944 --- /dev/null +++ b/SendGrid/Tests/sendgrid-csharp.snk diff --git a/SendGrid/UnitTest/UnitTests.csproj b/SendGrid/UnitTest/UnitTests.csproj index 1c6f0fc..d6ef8ae 100644 --- a/SendGrid/UnitTest/UnitTests.csproj +++ b/SendGrid/UnitTest/UnitTests.csproj @@ -35,6 +35,12 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup> + <SignAssembly>true</SignAssembly> + </PropertyGroup> + <PropertyGroup> + <AssemblyOriginatorKeyFile>sendgrid-csharp.snk</AssemblyOriginatorKeyFile> + </PropertyGroup> <ItemGroup> <Reference Include="Microsoft.CSharp" /> <Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> @@ -85,6 +91,7 @@ <ItemGroup> <None Include="app.config" /> <None Include="packages.config" /> + <None Include="sendgrid-csharp.snk" /> </ItemGroup> <Choose> <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'"> diff --git a/SendGrid/UnitTest/sendgrid-csharp.snk b/SendGrid/UnitTest/sendgrid-csharp.snk Binary files differnew file mode 100644 index 0000000..aff2944 --- /dev/null +++ b/SendGrid/UnitTest/sendgrid-csharp.snk |