Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the build template #10299

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
17 changes: 9 additions & 8 deletions .vsts-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ extends:
# We generate SBOM ourselves, so don't need steps injected by 1ES.
sbom:
enabled: false
codeSignValidation:
enabled: true
break: true

stages:
- stage: build
Expand Down Expand Up @@ -176,10 +179,15 @@ extends:
channelName: $(VisualStudio.ChannelName)
manifests: $(VisualStudio.SetupManifestList)
outputFolder: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion'
bootstrapperCoreVersion:
displayName: 'OptProf - Build VS bootstrapper'
condition: succeeded()

- task: PowerShell@2
displayName: Delete the file
inputs:
targetType: 'inline'
script: Get-ChildItem -Path "$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion\bootstrapper" -Recurse -Filter "vs_enterprise.exe" | Remove-Item -Verbose

# Publish run settings
- task: PowerShell@2
inputs:
Expand Down Expand Up @@ -208,13 +216,6 @@ extends:
ArtifactName: logs
condition: succeededOrFailed()

- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish Artifact: bin'
inputs:
path: 'artifacts\bin'
artifactName: bin
condition: succeededOrFailed()

# Publishes setup VSIXes to a drop.
# Note: The insertion tool looks for the display name of this task in the logs.
- task: 1ES.MicroBuildVstsDrop@1
Expand Down
2 changes: 2 additions & 0 deletions eng/Signing.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<ItemGroup>
<ItemsToSign Include="$(VisualStudioSetupInsertionPath)Microsoft.Build.UnGAC.exe" />

<ItemsToSign Include="$(ArtifactsDir)\xsd\Update-MSBuildXsds.ps1" />

<FileSignInfo Include="RuntimeContracts.dll" CertificateName="3PartySHA2" />
</ItemGroup>

Expand Down