@@ -181,12 +181,15 @@ private static async Task<string> FindMsBuildPathAsync()
181181
182182 private static bool UpdateAppxManifest ( IBuildInfo buildInfo )
183183 {
184+ var fullPathOutputDirectory = Path . GetFullPath ( buildInfo . OutputDirectory ) ;
185+ Debug . Log ( $ "Searching for appx manifest in { fullPathOutputDirectory } ...") ;
186+
184187 // Find the manifest, assume the one we want is the first one
185- string [ ] manifests = Directory . GetFiles ( BuildDeployPreferences . AbsoluteBuildDirectory , "Package.appxmanifest" , SearchOption . AllDirectories ) ;
188+ string [ ] manifests = Directory . GetFiles ( fullPathOutputDirectory , "Package.appxmanifest" , SearchOption . AllDirectories ) ;
186189
187190 if ( manifests . Length == 0 )
188191 {
189- Debug . LogError ( $ "Unable to find Package.appxmanifest file for build (in path - { BuildDeployPreferences . AbsoluteBuildDirectory } )") ;
192+ Debug . LogError ( $ "Unable to find Package.appxmanifest file for build (in path - { fullPathOutputDirectory } )") ;
190193 return false ;
191194 }
192195
@@ -200,15 +203,15 @@ private static bool UpdateAppxManifest(IBuildInfo buildInfo)
200203
201204 if ( identityNode == null )
202205 {
203- Debug . LogError ( $ "Package.appxmanifest for build (in path - { BuildDeployPreferences . AbsoluteBuildDirectory } ) is missing an <Identity /> node") ;
206+ Debug . LogError ( $ "Package.appxmanifest for build (in path - { fullPathOutputDirectory } ) is missing an <Identity /> node") ;
204207 return false ;
205208 }
206209
207210 var dependencies = rootNode . Element ( rootNode . GetDefaultNamespace ( ) + "Dependencies" ) ;
208211
209212 if ( dependencies == null )
210213 {
211- Debug . LogError ( $ "Package.appxmanifest for build (in path - { BuildDeployPreferences . AbsoluteBuildDirectory } ) is missing <Dependencies /> node.") ;
214+ Debug . LogError ( $ "Package.appxmanifest for build (in path - { fullPathOutputDirectory } ) is missing <Dependencies /> node.") ;
212215 return false ;
213216 }
214217
@@ -221,7 +224,7 @@ private static bool UpdateAppxManifest(IBuildInfo buildInfo)
221224
222225 if ( versionAttr == null )
223226 {
224- Debug . LogError ( $ "Package.appxmanifest for build (in path - { BuildDeployPreferences . AbsoluteBuildDirectory } ) is missing a Version attribute in the <Identity /> node.") ;
227+ Debug . LogError ( $ "Package.appxmanifest for build (in path - { fullPathOutputDirectory } ) is missing a Version attribute in the <Identity /> node.") ;
225228 return false ;
226229 }
227230
0 commit comments