-
Notifications
You must be signed in to change notification settings - Fork 432
User/ertorres/create vsix #509
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
Merged
Merged
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 8a00456
remove hardcoded versions of packages
erik0686 1b5d16a
update and fix yml file
erik0686 9df9463
move yml file into build folder
erik0686 caa5fb9
change steps to jobs
erik0686 f6fe8c7
add variables to pipeline
erik0686 0807e4a
fix typo on variable
erik0686 8e56e82
remove nuget feed
erik0686 18842e8
make same nuget feed
erik0686 a0eca4d
remove nuget again
erik0686 e9b8ecf
remove nuget
erik0686 5b423ef
remove nuget security analysis
erik0686 a1336d1
remove nuget
erik0686 27a2035
make same nuget feed
erik0686 45d2ac2
remove variable
erik0686 bff7fd2
change type of variable
erik0686 ef19136
explicitly call project on restore
erik0686 e2b9255
fix pipeline
erik0686 189a485
change condition format
erik0686 7e5c6ef
fix pipeline
erik0686 3d3723a
fix publishing artifact
erik0686 f3a30a9
fix path
erik0686 b4026d1
add vssdktools
erik0686 5dd44b5
add vssdktools
erik0686 0c7e4a7
add vssdktools
erik0686 beadc77
add vssdktools
erik0686 4e4e3a0
nuget auth
erik0686 ac0eeb7
add vssdktools
erik0686 5a46024
add vssdktools
erik0686 907b1bf
add vssdktools
erik0686 45ec1a4
add vssdktools
erik0686 5aa861c
add vssdktools
erik0686 e41b5d2
add vssdktools
erik0686 7c1673d
add vssdktools
erik0686 6d80d6e
fix vssdktools
erik0686 da501ec
fix vssdk
erik0686 bda51f4
fix vssdk
erik0686 03745d1
fix vssdk
erik0686 697da65
fix vssdk
erik0686 a5e7a20
fix vssdk
erik0686 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' | ||
| 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' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.