-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign extension with MS Build (#4372)
* Sign extension with MS Build * Update team name
- Loading branch information
1 parent
5de247f
commit b30d0ef
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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,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> |