Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6eea7ca
initial attempt of vsix creation yml
erik0686 Mar 2, 2021
8a00456
remove hardcoded versions of packages
erik0686 Mar 3, 2021
1b5d16a
update and fix yml file
erik0686 Mar 3, 2021
9df9463
move yml file into build folder
erik0686 Mar 3, 2021
caa5fb9
change steps to jobs
erik0686 Mar 3, 2021
f6fe8c7
add variables to pipeline
erik0686 Mar 4, 2021
0807e4a
fix typo on variable
erik0686 Mar 4, 2021
8e56e82
remove nuget feed
erik0686 Mar 4, 2021
18842e8
make same nuget feed
erik0686 Mar 4, 2021
a0eca4d
remove nuget again
erik0686 Mar 4, 2021
e9b8ecf
remove nuget
erik0686 Mar 4, 2021
5b423ef
remove nuget security analysis
erik0686 Mar 4, 2021
a1336d1
remove nuget
erik0686 Mar 4, 2021
27a2035
make same nuget feed
erik0686 Mar 4, 2021
45d2ac2
remove variable
erik0686 Mar 4, 2021
bff7fd2
change type of variable
erik0686 Mar 4, 2021
ef19136
explicitly call project on restore
erik0686 Mar 4, 2021
e2b9255
fix pipeline
erik0686 Mar 4, 2021
189a485
change condition format
erik0686 Mar 4, 2021
7e5c6ef
fix pipeline
erik0686 Mar 4, 2021
3d3723a
fix publishing artifact
erik0686 Mar 4, 2021
f3a30a9
fix path
erik0686 Mar 4, 2021
b4026d1
add vssdktools
erik0686 Mar 4, 2021
5dd44b5
add vssdktools
erik0686 Mar 4, 2021
0c7e4a7
add vssdktools
erik0686 Mar 4, 2021
beadc77
add vssdktools
erik0686 Mar 4, 2021
4e4e3a0
nuget auth
erik0686 Mar 5, 2021
ac0eeb7
add vssdktools
erik0686 Mar 5, 2021
5a46024
add vssdktools
erik0686 Mar 5, 2021
907b1bf
add vssdktools
erik0686 Mar 5, 2021
45ec1a4
add vssdktools
erik0686 Mar 5, 2021
5aa861c
add vssdktools
erik0686 Mar 5, 2021
e41b5d2
add vssdktools
erik0686 Mar 5, 2021
7c1673d
add vssdktools
erik0686 Mar 5, 2021
6d80d6e
fix vssdktools
erik0686 Mar 5, 2021
da501ec
fix vssdk
erik0686 Mar 5, 2021
bda51f4
fix vssdk
erik0686 Mar 5, 2021
03745d1
fix vssdk
erik0686 Mar 5, 2021
697da65
fix vssdk
erik0686 Mar 5, 2021
a5e7a20
fix vssdk
erik0686 Mar 5, 2021
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
96 changes: 96 additions & 0 deletions build/ProjectReunion-Create-VSIX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
parameters:
- name: "ReunionVersion"
type: string
default: ''
- name: "ReunionFoundationVersion"
type: string
default: ''
- name: "ReunionDWriteVersion"
type: string
default: ''
- name: "ReunionWinUIVersion"
type: string
default: ''
- name: "releaseBuild"
type: boolean
default: True

jobs:

- job: CreatingVsix
pool:
vmImage: 'windows-2019'

variables:
${{if eq(parameters.releaseBuild, True) }}:
VSIXBuildArgs: '/p:"RestoreSources=https://api.nuget.org/v3/index.json;https://pkgs.dev.azure.com/microsoft/ProjectReunion/_packaging/Project.Reunion.Internal.ReleaseSigned/nuget/v3/index.json"'
${{if eq(parameters.releaseBuild, False) }}:
VSIXBuildArgs: ''

steps:
- task: NuGetAuthenticate@0
inputs:
nuGetServiceConnections: Internal-ReleaseSigned

# NuGetCommand@2
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: 'NuGet restore'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe for the next time you could consolidate the two different restores steps that are happening on this step and the next step.

inputs:
command: 'custom'
arguments: 'restore dev\VSIX\packages.config -PackagesDirectory $(UserProfile)\.nuget\packages'

- task: VSBuild@1
displayName: 'Restore ProjectReunion.Extension.sln'
inputs:
solution: dev\VSIX\ProjectReunion.Extension.sln
platform: 'Any CPU'
configuration: '$(buildConfiguration)'
msBuildArgs: '/t:restore /p:ReunionVersion="${{ parameters.ReunionVersion }}" /p:ReunionFoundationVersion="${{ parameters.ReunionFoundationVersion }}" /p:ReunionDWriteVersion="${{ parameters.ReunionDWriteVersion }}" /p:ReunionWinUIVersion="${{ parameters.ReunionWinUIVersion }}" ${{ variables.VSIXBuildArgs }}'

- task: VSBuild@1
displayName: 'Build ProjectReunion.Extension.sln'
inputs:
solution: dev\VSIX\ProjectReunion.Extension.sln
platform: 'Any CPU'
configuration: '$(buildConfiguration)'
msBuildArgs: '/p:VSToolsPath="$(UserProfile)\.nuget\packages\microsoft.vssdk.buildtools\16.9.1050\tools" /p:ReunionVersion="${{ parameters.ReunionVersion }}" /p:ReunionFoundationVersion="${{ parameters.ReunionFoundationVersion }}" /p:ReunionDWriteVersion="${{ parameters.ReunionDWriteVersion }}" /p:ReunionWinUIVersion="${{ parameters.ReunionWinUIVersion }}" ${{ variables.VSIXBuildArgs }}'

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Governance Detection'
inputs:
scanType: 'Register'
failOnAlert: true

- ${{ if eq( parameters.releaseBuild, true) }}:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'CodeSign (vsix)'
inputs:
ConnectedServiceName: 'Project Reunion ESRP Code Signing Connection'
FolderPath: 'dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)'
Pattern: ProjectReunion.Extension.vsix
signConfigType: inlineSignParams
inlineOperation: |
[
{
"KeyCode" : "CP-233016",
"OperationCode" : "OpcSign",
"Parameters" : {
"FileDigest" : "/fd SHA256"
},
"ToolName" : "sign",
"ToolVersion" : "1.0"
},
{
"KeyCode" : "CP-233016",
"OperationCode" : "OpcVerify",
"Parameters" : {},
"ToolName" : "sign",
"ToolVersion" : "1.0"
}
]

- task: PublishBuildArtifacts@1
displayName: 'Publish ProjectReunion.Extension.VSIX'
inputs:
PathtoPublish: 'dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)\ProjectReunion.Extension.vsix'
artifactName: 'VSIX'
1 change: 1 addition & 0 deletions dev/VSIX/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!-- Provide default nuget feed (Reunion internal) and package versions for developer builds -->
<PropertyGroup>
<RestoreSources Condition="'$(RestoreSources)'==''">
https://api.nuget.org/v3/index.json;
https://pkgs.dev.azure.com/microsoft/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json
</RestoreSources>
<CppWinRTVersion Condition="'$(CppWinRTVersion)' == ''">2.0.210211.2</CppWinRTVersion>
Expand Down
4 changes: 4 additions & 0 deletions dev/VSIX/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VSSDK.BuildTools" version="16.9.1050" targetFramework="native" />
</packages>