mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-20 15:40:16 +01:00
Enable assembly signing
This commit is contained in:
parent
5a24a4f3af
commit
b9e3411039
|
|
@ -87,4 +87,19 @@ All messages now have a unique timestamp useful to expire older messages.</Packa
|
|||
<PackageReference Include="System.IO.Ports" Version="4.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="SignAssemblies" Condition="Exists($(CertificatePath)) AND '$(CertificatePassword)'!=''" BeforeTargets="CopyFilesToOutputDirectory" DependsOnTargets="ComputeIntermediateSatelliteAssemblies">
|
||||
<ItemGroup>
|
||||
<FilesToSign Include="@(IntermediateAssembly)" />
|
||||
<FilesToSign Include="@(IntermediateRefAssembly)" />
|
||||
<FilesToSign Include="@(IntermediateSatelliteAssembliesWithTargetPath)" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<FilesToSignFiltered Include="@(FilesToSign)" Condition="Exists(%(FilesToSign.Identity))" />
|
||||
</ItemGroup>
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command="signtool sign /v /fd SHA1 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA1 "%(FilesToSignFiltered.Identity)""
|
||||
WorkingDirectory="$(ProjectDir)" EchoOff="true" />
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command="signtool sign /v /as /d "Authorization Summary" /fd SHA256 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA256 "%(FilesToSignFiltered.Identity)""
|
||||
WorkingDirectory="$(ProjectDir)" EchoOff="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in a new issue