Skip to content

Conversation

@mdanish-kh
Copy link
Contributor

@mdanish-kh mdanish-kh commented Nov 25, 2023

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

@mdanish-kh mdanish-kh requested review from a team, ryfu-msft and yao-msft and removed request for a team November 25, 2023 20:27
@microsoft-github-policy-service microsoft-github-policy-service bot added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Nov 25, 2023
@ryfu-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ryfu-msft ryfu-msft merged commit ad06a4e into microsoft:main Nov 27, 2023
@mdanish-kh mdanish-kh deleted the expandPaths branch November 28, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WingetCreate commands should work with anonymized paths

2 participants