WinRT 8.1 Build Error … Task 'GenerateAppxSymbolPackage' failed. Could not find a part of the path …

Suddenly builds start to fail on a Win8.1 project, with the interesting message “Could not find a part of the path ”.

clip_image002 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets (1512): Task 'GenerateAppxSymbolPackage' failed. Could not find a part of the path 'D:\Work\drops\projectName_1.1.0.0_Debug_Test'.

image

This messages is due to the fact that a team member runs the Package Creation Wizard from Visual Studio, sets the Bundle drop location and put the solution in the source repository.

image

The build server wants to use the same location as the value set by the developer. it is not saved in the Package mannifest, but in the csproj. 

the value is saved in the csproj <AppxPackageDir> key, setting it during the build would be better. Setting it to a drop location known by the Build Server solves the error.

good luck.

Add comment