Skip to content

Commit e227371

Browse files
author
Javad Rahnama
authored
eng | Add Delay sign to ref csprojs (#2684)
1 parent 5c0ce12 commit e227371

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
<TargetGroup Condition="'$([MSBuild]::GetTargetFrameworkIdentifier($(TargetFramework)))'=='.NETCoreApp'">netcoreapp</TargetGroup>
1111
<Platforms>AnyCPU;x64;x86</Platforms>
1212
</PropertyGroup>
13+
<!--Generating Strong Name-->
14+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
15+
<SignAssembly>true</SignAssembly>
16+
<DelaySign>true</DelaySign>
17+
<KeyFile>$(SigningKeyPath)</KeyFile>
18+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
19+
</PropertyGroup>
20+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
21+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
22+
</PropertyGroup>
23+
1324
<ItemGroup>
1425
<Compile Include="Microsoft.Data.SqlClient.cs" />
1526
<Compile Include="Microsoft.Data.SqlClient.Manual.cs" />

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@
2121
<RootNamespace />
2222
</PropertyGroup>
2323
<!--Generating Strong Name-->
24-
<PropertyGroup Condition="$(SigningKeyPath) != ''">
24+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
2525
<SignAssembly>true</SignAssembly>
2626
<DelaySign>true</DelaySign>
2727
<KeyFile>$(SigningKeyPath)</KeyFile>
2828
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
2929
</PropertyGroup>
30+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
31+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
32+
</PropertyGroup>
3033
<PropertyGroup>
3134
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
3235
</PropertyGroup>

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<DocumentationFile>$(OutputPath)\Microsoft.Data.SqlClient.xml</DocumentationFile>
88
<Product>Framework $(BaseProduct)</Product>
99
<Configurations>Debug;Release;</Configurations>
10+
</PropertyGroup>
11+
<!--Generating Strong Name-->
12+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
13+
<SignAssembly>true</SignAssembly>
14+
<DelaySign>true</DelaySign>
15+
<KeyFile>$(SigningKeyPath)</KeyFile>
16+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
17+
</PropertyGroup>
18+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
19+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
1020
</PropertyGroup>
1121
<ItemGroup>
1222
<Compile Include="Microsoft.Data.SqlClient.cs" />

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@
1919
<DefineConstants>$(DefineConstants);NETFRAMEWORK;</DefineConstants>
2020
</PropertyGroup>
2121
<!--Generating Strong Name-->
22-
<PropertyGroup Condition="$(SigningKeyPath) != ''">
22+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)==Official">
2323
<SignAssembly>true</SignAssembly>
2424
<DelaySign>true</DelaySign>
2525
<KeyFile>$(SigningKeyPath)</KeyFile>
2626
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
2727
</PropertyGroup>
28+
<PropertyGroup Condition="$(CDP_BUILD_TYPE)!=Official">
29+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
30+
</PropertyGroup>
2831
<!-- Override debugtype=portable in Directory.Build.props for netfx -->
2932
<PropertyGroup>
3033
<DebugType>full</DebugType>

0 commit comments

Comments
 (0)