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
Path.GetFullPath()
will convert any slashes toPath.DirectorySeparatorChar
which is backslash in Windows. This is done to make sure that when user gives a commandwingetcreate update xyz --out %USERPROFILE%/Desktop
, then the output path on the CLI is printed with consistent slashes asotherwise it will be printed as
%USERPROFILE%/Desktop\manifests\xyz\version
Microsoft Reviewers: Open in CodeFlow