microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
472 stars 83 forks source link

Expand environment variables in input paths #484

Closed mdanish-kh closed 7 months ago

mdanish-kh commented 7 months ago

Path.GetFullPath() will convert any slashes to Path.DirectorySeparatorChar which is backslash in Windows. This is done to make sure that when user gives a command wingetcreate update xyz --out %USERPROFILE%/Desktop, then the output path on the CLI is printed with consistent slashes as

Manifest saved to %USERPROFILE%\Desktop\manifests\xyz\version\

otherwise it will be printed as %USERPROFILE%/Desktop\manifests\xyz\version


Microsoft Reviewers: Open in CodeFlow
ryfu-msft commented 7 months ago

/azp run

azure-pipelines[bot] commented 7 months ago
Azure Pipelines successfully started running 1 pipeline(s).