Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions eng/pipelines/jobs/build-akv-official-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
assemblyFileVersion: '${{ parameters.assemblyFileVersion }}'
buildConfiguration: '${{ parameters.buildConfiguration }}'
mdsPackageVersion: '${{ parameters.mdsPackageVersion }}'
signingKeyPath: '$(Agent.TempDirectory)/netfxKeypair.snk'

- ${{ each targetFramework in parameters.targetFrameworks }}:
- template: ../steps/compound-extract-akv-apiscan-files-step.yml
Expand All @@ -105,6 +106,7 @@ jobs:
parameters:
buildConfiguration: '${{ parameters.buildConfiguration }}'
mdsPackageVersion: '${{ parameters.mdsPackageVersion }}'
signingKeyPath: '$(Agent.TempDirectory)/netfxKeypair.snk'

- template: ../steps/compound-esrp-code-signing-step.yml@self
parameters:
Expand Down
5 changes: 4 additions & 1 deletion eng/pipelines/steps/compound-build-akv-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ parameters:
- name: mdsPackageVersion
type: string

- name: signingKeyPath
type: string

steps:
- task: DownloadSecureFile@1
displayName: 'Download Signing Key'
Expand Down Expand Up @@ -48,7 +51,7 @@ steps:
-p:AssemblyFileVersion=${{ parameters.assemblyFileVersion }}
-p:NugetPackageVersion=${{ parameters.mdsPackageVersion }}
-p:ReferenceType=Package
-p:SigningKeyPath=$(Agent.TempDirectory)/netfxKeypair.snk
-p:SigningKeyPath=${{ parameters.signingKeyPath }}

- script: tree /a /f $(BUILD_OUTPUT)
displayName: Output Build Output Tree
14 changes: 11 additions & 3 deletions eng/pipelines/steps/roslyn-analyzers-akv-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
# See the LICENSE file in the project root for more information. #
#################################################################################

# @TODO: This can probably be made generic and pass in the command lines for msbuild
# BUT, they should be kept separate by now as we rebuild build.proj in parallel, we won't
# affect >1 project at a time.
# NOTE: Because Roslyn analyzers run with the build process, this step must happen within our
# build in order to generate logs that Guardian/SDL can consume. HOWEVER - this step will rebuild
# the project and overwrite any previously build output! Therefore, the command line params in
# this step and the build step must be the same to avoid packaging invalid binaries!
# There is a way to avoid using this task and have analyzers run during the main build, but this
# task will ensure we are using the latest analyzers as per SDL.
# For more info, please see: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-mohanb/security-integration/guardian-wiki/sdl-azdo-extension/roslyn-analyzers-build-task

parameters:
- name: buildConfiguration
Expand All @@ -15,6 +19,9 @@ parameters:
- name: mdsPackageVersion
type: string

- name: signingKeyPath
Comment thread
benrr101 marked this conversation as resolved.
type: string

steps:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-roslynanalyzers.RoslynAnalyzers@3
displayName: 'Roslyn Analyzers'
Expand All @@ -27,5 +34,6 @@ steps:
-p:Configuration=${{ parameters.buildConfiguration }}
-p:NugetPackageVersion=${{ parameters.mdsPackageVersion }}
-p:ReferenceType=Package
-p:SigningKeyPath=${{ parameters.signingKeyPath }}
msBuildVersion: 17.0
setupCommandLinePicker: vs2022
3 changes: 3 additions & 0 deletions src/Microsoft.Data.SqlClient.sln
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "variables", "variables", "{
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "jobs", "jobs", "{09352F1D-878F-4F55-8AA2-6E47F1AD37D5}"
ProjectSection(SolutionItems) = preProject
..\eng\pipelines\jobs\build-akv-official-job.yml = ..\eng\pipelines\jobs\build-akv-official-job.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "steps", "steps", "{AD738BD4-6A02-4B88-8F93-FBBBA49A74C8}"
ProjectSection(SolutionItems) = preProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
<IsTrimmable Condition="'$(TargetGroup)'=='netcoreapp'">true</IsTrimmable>
<IsAotCompatible Condition="'$(TargetGroup)'=='netcoreapp'">true</IsAotCompatible>
</PropertyGroup>

<!--Generating Strong Name-->
<PropertyGroup Condition="'$(CDP_BUILD_TYPE)'=='Official'">
<PropertyGroup Condition="'$(CDP_BUILD_TYPE)'=='Official' Or '$(CDP_BUILD_TYPE)'=='Buddy'">
<SignAssembly>true</SignAssembly>
<KeyFile>$(SigningKeyPath)</KeyFile>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>$(SigningKeyPath)</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(GeneratedSourceFileName)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
Expand Down
Loading