Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtractSolution.ps1 error with invalid path in latest version #314

Open
ghexplorer007 opened this issue Nov 21, 2021 · 0 comments
Open

ExtractSolution.ps1 error with invalid path in latest version #314

ghexplorer007 opened this issue Nov 21, 2021 · 0 comments

Comments

@ghexplorer007
Copy link

Hi Wael.

I noticed this error as soon as version 9.1.0.2 of powershell was released but haven't got time to investigate it in details until now.

In short, ExtractSolution script is failing with error:
Expand-XrmSolution : The given path's format is not supported.
At C:\Program Files\WindowsPowerShell\Modules\Xrm.Framework.CI.PowerShell.Cmdlets\9.1.0.2\ExtractSolution.ps1:100 char:1

After debugging script I found out that cmdlet Export-XrmSolution(used internaly by ExtractSolution script) is in latest version returning full path to zip file, which then concatinated with variable $env:TEMP produces invalid path for solution packager.
In version 9.1.0.1 cmdlet returns only zip name without path. See attached screenshots for both versions

Cheers

CIV9 1 0 1
CIErrorV9 1 0 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant