Skip to content

Commit

Permalink
Sign the Microsoft.Windows.Sdk.Win32Docs.dll assembly (#1380)
Browse files Browse the repository at this point in the history
* Sign the Microsoft.Windows.Sdk.Win32Docs.dll assembly

We need to build it, sign it, then pack it.

* Update Nerdbank.GitVersioning
  • Loading branch information
AArnott authored Nov 23, 2022
1 parent 5591d11 commit 0e77676
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.231" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119" PrivateAssets="all" />
</ItemGroup>
</Project>
47 changes: 46 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,52 @@ jobs:
version: 2.1.x
- powershell: dotnet tool update --global nbgv
displayName: ⚙ Install nbgv
- script: dotnet pack -c $(BuildConfiguration)
- script: dotnet build -c $(BuildConfiguration)
displayName: 🏭 dotnet build
workingDirectory: apidocs
- task: EsrpCodeSigning@1
displayName: ✒ Assembly sign
inputs:
ConnectedServiceName: Xlang Code Signing
FolderPath: $(System.DefaultWorkingDirectory)/bin/$(BuildConfiguration)/netstandard2.0
Pattern: '*.dll'
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd sha256"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "signtool.exe",
"toolVersion": "6.2.9304.0"
}
]
SessionTimeout: 60
MaxConcurrency: 50
MaxRetryAttempts: 5
condition: and(succeeded(), eq(variables['SignFiles'], 'true'), ne(variables['Build.Reason'], 'PullRequest'))
- script: dotnet pack Microsoft.Windows.SDK.Win32Docs --no-build -c $(BuildConfiguration) -p:BuildProjectReferences=false
displayName: 📦 dotnet pack
workingDirectory: apidocs
- task: EsrpCodeSigning@1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@
<ProjectReference Include="..\Win32MetadataInterop\Win32MetadataInterop.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions sources/ConstantsScraper/ConstantsScraper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@
<ProjectReference Include="..\MetadataUtils\MetadataUtils.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions sources/GeneratorSdk/MetadataTasks/MetadataTasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@
<ProjectReference Include="..\..\MetadataUtils\MetadataUtils.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions sources/MetadataUtils/MetadataUtils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions sources/Win32MetadataInterop/Win32MetadataInterop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@
<NoWarn>1701;1702;0649</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions sources/WinmdUtils/WinmdUtils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@
<ProjectReference Include="..\Win32MetadataInterop\Win32MetadataInterop.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\sources\ClangSharpSourceToWinmd\ClangSharpSourceToWinmd.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions tests/MetadataUtils.Tests/MetadataUtils.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,4 @@
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions tests/TestCommon/TestCommon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@
<PackageReference Include="xunit" Version="2.4.2" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions tests/VtablesFromPdb/VtablesFromPdb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>
6 changes: 1 addition & 5 deletions tests/Windows.Win32.Tests/Windows.Win32.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="Microsoft.Windows.SDK.Win32Metadata" Version="$(LastWin32MetadataReleaseVersion)" GeneratePathProperty="True">
<PrivateAssets>all</PrivateAssets>
</PackageReference>

</ItemGroup>

<ItemGroup>
Expand All @@ -46,8 +46,4 @@
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning" Version="3.5.113" />
</ItemGroup>

</Project>

0 comments on commit 0e77676

Please sign in to comment.