Skip to content

Commit

Permalink
SNOW-918411: Configure to sign assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Sep 26, 2023
1 parent bd89073 commit 220a9c1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Snowflake.Data.Tests/Snowflake.Data.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<LangVersion>7.3</LangVersion>
<DefineConstants>$(SEQUENTIAL_ENV)</DefineConstants>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>./../TestStrongSignKey.snk</AssemblyOriginatorKeyFile>
<DelaySign>True</DelaySign>
</PropertyGroup>

<ItemGroup>
Expand Down
15 changes: 13 additions & 2 deletions Snowflake.Data/Core/Snowflake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,16 @@
*/

using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Snowflake.Data.Tests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] // needed by Moq to be able to mock internal interfaces
[assembly: InternalsVisibleTo("Snowflake.Data.Tests, PublicKey=" +
"0024000004800000940000000602000000240000525341310004000001000100d90268f96e9542" +
"615b6dbfddb1ad6e03f05923ee64c43af1b189a58710da5565f2e229ce9371e646da9eabbee97d" +
"83aaf8d93dd61c0a9788b239a026bb1824b0c622a5f405fb89083bf823143e98048828e2ac5792" +
"0c840de0e914c017cd0bb8836e41ad0018b3613a6e87e57467569a5a1330d1a7f9e7a560fcca2f" +
"5db936cc")]

[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2,PublicKey=" + // needed by Moq to be able to mock internal interfaces
"0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99" +
"c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654" +
"753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46" +
"ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484c" +
"f7045cc7")]
3 changes: 3 additions & 0 deletions Snowflake.Data/Snowflake.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<AssemblyVersion>$(Version)</AssemblyVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>./../TestStrongSignKey.snk</AssemblyOriginatorKeyFile>
<DelaySign>True</DelaySign>
</PropertyGroup>

<ItemGroup>
Expand Down
Binary file added TestStrongSignKey.snk
Binary file not shown.

0 comments on commit 220a9c1

Please sign in to comment.