Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3219 from dotnet/signingErrorChecks_2.0
Browse files Browse the repository at this point in the history
Add error checks
  • Loading branch information
eerhardt committed Sep 14, 2017
2 parents 0b2b420 + 74fe13a commit e10d9cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sign.proj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<OutDir Condition="'$(OutDir)' == ''">$(BaseOutputRootPath)/</OutDir>
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(IntermediateOutputRootPath)</IntermediateOutputPath>
</PropertyGroup>
<Error Condition="!Exists('$(OutDir)')" Text="'OutDir' folder '$(OutDir)' does not exist."/>
</Target>

<Target Name="SignBinaries" DependsOnTargets="GetSignBinaryFiles">
Expand Down Expand Up @@ -49,6 +50,7 @@
<Authenticode>$(CertificateId)</Authenticode>
</FilesToSign>
</ItemGroup>
<Error Condition="'@(FilesToSign)' == ''" Text="There are no files to sign. FilesToSign group is empty."/>
</Target>

<Target Name="SignMsiAndCab" DependsOnTargets="GetSignMsiAndCabFiles">
Expand All @@ -64,6 +66,7 @@
<Authenticode>$(CertificateId)</Authenticode>
</FilesToSign>
</ItemGroup>
<Error Condition="'@(FilesToSign)' == ''" Text="There are no files to sign. FilesToSign group is empty."/>
</Target>

<Target Name="SignEngine" DependsOnTargets="GetSignEngineFiles">
Expand All @@ -76,6 +79,7 @@
<Authenticode>$(CertificateId)</Authenticode>
</FilesToSign>
</ItemGroup>
<Error Condition="'@(FilesToSign)' == ''" Text="There are no files to sign. FilesToSign group is empty."/>
</Target>

<Target Name="SignBundle" DependsOnTargets="GetSignBundleFiles">
Expand All @@ -88,6 +92,7 @@
<Authenticode>$(CertificateId)</Authenticode>
</FilesToSign>
</ItemGroup>
<Error Condition="'@(FilesToSign)' == ''" Text="There are no files to sign. FilesToSign group is empty."/>
</Target>

</Project>

0 comments on commit e10d9cf

Please sign in to comment.