Skip to content

Commit ce7393b

Browse files
author
Javad Rahnama
authored
eng | Add delay signed to official builds (#2653)
1 parent a34ec48 commit ce7393b

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

eng/pipelines/common/templates/steps/build-all-configurations-signed-dlls-step.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ steps:
3636
inputs:
3737
solution: '**/build.proj'
3838
configuration: '${{parameters.Configuration }}'
39-
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SignAssembly=true -p:AssemblyOriginatorKeyFile=$(Agent.TempDirectory)\netfxKeypair.snk'
39+
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'
4040

4141
- ${{ if eq(parameters.product, 'AKV') }}:
4242
- task: MSBuild@1

eng/pipelines/common/templates/steps/code-analyze-step.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ steps:
3434
msBuildVersion: 17.0
3535
msBuildArchitecture: x64
3636
setupCommandlinePicker: vs2022
37-
msBuildCommandline: 'msbuild ${{parameters.sourceRoot}}\build.proj -p:configuration=Release -p:GenerateNuget=false -p:BuildTools=false'
37+
msBuildCommandline: 'msbuild ${{parameters.sourceRoot}}\build.proj -p:configuration=Release -p:GenerateNuget=false -p:BuildTools=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk'
3838
- ${{ if eq(parameters.product, 'AKV') }}:
3939
- task: securedevelopmentteam.vss-secure-development-tools.build-task-roslynanalyzers.RoslynAnalyzers@3
4040
displayName: 'Guardian Dotnet Analyzers '

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
<NoWarn>$(NoWarn);IL2026;IL2057;IL2072;IL2075</NoWarn>
2121
<RootNamespace />
2222
</PropertyGroup>
23+
<!--Generating Strong Name-->
24+
<PropertyGroup Condition="$(SigningKeyPath) != ''">
25+
<SignAssembly>true</SignAssembly>
26+
<DelaySign>true</DelaySign>
27+
<KeyFile>$(SigningKeyPath)</KeyFile>
28+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
29+
</PropertyGroup>
2330
<PropertyGroup>
2431
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
2532
</PropertyGroup>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
1919
<DefineConstants>$(DefineConstants);NETFRAMEWORK;</DefineConstants>
2020
</PropertyGroup>
21+
<!--Generating Strong Name-->
22+
<PropertyGroup Condition="$(SigningKeyPath) != ''">
23+
<SignAssembly>true</SignAssembly>
24+
<DelaySign>true</DelaySign>
25+
<KeyFile>$(SigningKeyPath)</KeyFile>
26+
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
27+
</PropertyGroup>
2128
<!-- Override debugtype=portable in Directory.Build.props for netfx -->
2229
<PropertyGroup>
2330
<DebugType>full</DebugType>

0 commit comments

Comments
 (0)