Skip to content

Commit ca43c20

Browse files
committed
Add strong name signing and triple check package references
1 parent 2a0ff49 commit ca43c20

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
</PropertyGroup>
88

9+
<!-- Strong name signing ============================================= -->
10+
<PropertyGroup Condition="'$(CDP_BUILD_TYPE)' == 'Official'">
11+
<SignAssembly>true</SignAssembly>
12+
<KeyFile>$(SigningKeyPath)</KeyFile>
13+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
14+
</PropertyGroup>
15+
<PropertyGroup Condition="'$(CDP_BUILD_TYPE)' != 'Official'">
16+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
17+
</PropertyGroup>
18+
919
<!-- OS Constants ==================================================== -->
1020
<PropertyGroup>
1121
<!-- @TODO: Move to directory.build.props? -->
@@ -58,6 +68,7 @@
5868
<Reference Include="System.Configuration" />
5969
<Reference Include="System.EnterpriseServices" />
6070
<Reference Include="System.Transactions" />
71+
6172
<PackageReference Include="Azure.Core" />
6273
<PackageReference Include="Azure.Identity" />
6374
<PackageReference Include="Microsoft.Bcl.Cryptography" />
@@ -69,6 +80,8 @@
6980
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" />
7081
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" />
7182
<PackageReference Include="System.Buffers" />
83+
<PackageReference Include="System.Diagnostics.DiagnosticSource" />
84+
<PackageReference Include="System.Memory" />
7285
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
7386
<PackageReference Include="System.Security.Cryptography.Pkcs" />
7487
<PackageReference Include="System.Text.Json" />

0 commit comments

Comments
 (0)