I have configured a TFS(2017) build pipeline to compile a VS extension with debug mode for a specific requirement which require .pdb files. The build solution task fails for "debug" configuration with below error, however same pipeline works for the release configuration. I have tried the approach mentioned in the following discussion as well, howewer it doesn't resolve my issue.
Appreciate if someone can help me to resolve this issue.
Following is the build configuration used for the Build Solution task:

Following build variables are used to configure build parameters.

Build Error message:
packages\Microsoft.VSSDK.BuildTools.15.1.192\tools\VSSDK\Microsoft.VsSDK.targets (633, 5) packages\Microsoft.VSSDK.BuildTools.15.1.192\tools\VSSDK\Microsoft.VsSDK.targets(633,5): Error VSSDK1077: Unable to locate the extensions directory. "Value cannot be null. Parameter name: path1". Process 'msbuild.exe' exited with code '1'.