@@ -62,20 +62,31 @@ public override bool Execute()
62
62
return true ;
63
63
}
64
64
65
- // Zip the CatalogInformation if it exists.
66
65
var fs = FileSystem . Instance ;
67
66
68
- // Store zip in bin\{Debug/Release} folder, similar like nupkg files.
67
+ // Package & zip are stored in bin\{Debug/Release} folder, similar like nupkg files.
69
68
string baseLocation = BaseOutputPath ;
70
69
if ( ! fs . Path . IsPathRooted ( BaseOutputPath ) )
71
70
{
72
- // Relative path (starting from project directory
71
+ // Relative path (starting from project directory)
73
72
baseLocation = fs . Path . GetFullPath ( fs . Path . Combine ( ProjectDirectory , BaseOutputPath ) ) ;
74
73
}
75
74
76
- string packagePath = FileSystem . Instance . Path . Combine ( baseLocation , Configuration , $ "{ PackageId } .{ PackageVersion } .dmapp") ;
75
+ string packagePath = fs . Path . Combine ( baseLocation , Configuration , $ "{ PackageId } .{ PackageVersion } .dmapp") ;
77
76
string catalogInfoPath = fs . Path . Combine ( baseLocation , Configuration , $ "{ PackageId } .{ PackageVersion } .CatalogInformation.zip") ;
78
77
78
+ if ( ! fs . File . Exists ( packagePath ) )
79
+ {
80
+ Log . LogError ( $ "Package '{ PackageId } ' was not found on expected location: { packagePath } ") ;
81
+ return false ;
82
+ }
83
+
84
+ if ( ! fs . File . Exists ( catalogInfoPath ) )
85
+ {
86
+ Log . LogError ( $ "CatalogInformation was not found on expected location: { catalogInfoPath } ") ;
87
+ return false ;
88
+ }
89
+
79
90
Log . LogMessage ( $ "Found Package: { packagePath } .") ;
80
91
Log . LogMessage ( $ "Found Catalog Information: { catalogInfoPath } .") ;
81
92
0 commit comments