-
Notifications
You must be signed in to change notification settings - Fork 75
/
PlaywrightVSCode.signproj
29 lines (26 loc) · 1.22 KB
/
PlaywrightVSCode.signproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" Sdk="Microsoft.Build.NoTargets/3.7.56">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- FilesToSign needs to be inside $(OutDir) hence we copy it into
$(OutDir) before (from CWD) and move it back outside after the signing -->
<FilesToSign Include="$(OutDir)\extension.signature.p7s">
<!-- Add the certificate friendly name below -->
<Authenticode>VSCodePublisher</Authenticode>
</FilesToSign>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Target Name="CopySignatureFile" BeforeTargets="SignFiles">
<Copy SourceFiles="$(ProjectDir)\extension.manifest" DestinationFiles="$(OutDir)\extension.signature.p7s" />
</Target>
<Target Name="CopyBackSignatureFile" AfterTargets="SignFiles">
<Copy SourceFiles="$(OutDir)\extension.signature.p7s" DestinationFiles="$(ProjectDir)\extension.signature.p7s" />
</Target>
</Project>