Skip to content

Commit f73e1eb

Browse files
Prepare for signing (#728)
1 parent 9f85e22 commit f73e1eb

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.azure-pipelines/1esmain.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ parameters:
3030
type: boolean
3131
default: true
3232

33+
variables:
34+
# Required by MicroBuild template
35+
- name: TeamName
36+
value: "Azure Tools for VS Code"
37+
3338
# Use those templates
3439
extends:
3540
template: azure-pipelines/1esmain.yml@azExtTemplates
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" Sdk="Microsoft.Build.NoTargets/3.7.56">
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<!-- FilesToSign needs to be inside $(OutDir) hence we copy it into
8+
$(OutDir) before (from CWD) and move it back outside after the signing -->
9+
<FilesToSign Include="$(OutDir)\extension.signature.p7s">
10+
<!-- Add the certificate friendly name below -->
11+
<Authenticode>VSCodePublisher</Authenticode>
12+
</FilesToSign>
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="1.0.0">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
20+
</ItemGroup>
21+
22+
<Target Name="CopySignatureFile" BeforeTargets="SignFiles">
23+
<Copy SourceFiles="$(ProjectDir)\..\extension.manifest" DestinationFiles="$(OutDir)\extension.signature.p7s" />
24+
</Target>
25+
26+
<Target Name="CopyBackSignatureFile" AfterTargets="SignFiles">
27+
<Copy SourceFiles="$(OutDir)\extension.signature.p7s" DestinationFiles="$(ProjectDir)\..\extension.signature.p7s" />
28+
</Target>
29+
</Project>

0 commit comments

Comments
 (0)