Thanks to visit codestin.com
Credit goes to github.com

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

Commit 74fe13a

Browse files
author
JC Aguilera
authored
Add error checks
1 parent 0b2b420 commit 74fe13a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sign.proj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<OutDir Condition="'$(OutDir)' == ''">$(BaseOutputRootPath)/</OutDir>
2020
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(IntermediateOutputRootPath)</IntermediateOutputPath>
2121
</PropertyGroup>
22+
<Error Condition="!Exists('$(OutDir)')" Text="'OutDir' folder '$(OutDir)' does not exist."/>
2223
</Target>
2324

2425
<Target Name="SignBinaries" DependsOnTargets="GetSignBinaryFiles">
@@ -49,6 +50,7 @@
4950
<Authenticode>$(CertificateId)</Authenticode>
5051
</FilesToSign>
5152
</ItemGroup>
53+
<Error Condition="'@(FilesToSign)' == ''" Text="There are no files to sign. FilesToSign group is empty."/>
5254
</Target>
5355

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

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

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

9398
</Project>

0 commit comments

Comments
 (0)