Skip to content

Fix issue with missing space in AdditionalArguments - #213

Merged
Derek (derekfreed) merged 1 commit into
microsoft:developfrom
jwittner:fix/additionalArgumentsMissingSpace
Sep 11, 2020
Merged

Fix issue with missing space in AdditionalArguments#213
Derek (derekfreed) merged 1 commit into
microsoft:developfrom
jwittner:fix/additionalArgumentsMissingSpace

Conversation

@jwittner

Copy link
Copy Markdown
Member

Ran into this issue below (observe the missing space between "ArgValue" and "-projectPath"):

sue -Project C:\Some\Unity\Project\ -AdditionalArguments "-ArgName ArgValue" -WhatIf
What if: Performing the operation "System.Diagnostics.Process.Start()" on target "C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Unity.exe -ArgName ArgValue-projectPath "C:\Some\Unity\Project\"".

This was happening to do type inference not resulting in the desired outcomes when building up the arguments. Namely $unityArgs was being converted to a string upon construction rather than on assignment to process.StartInfo.Arguments. New explicit types resolves this issue.

@derekfreed
Derek (derekfreed) merged commit 602fb72 into microsoft:develop Sep 11, 2020
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

Successfully merging this pull request may close these issues.

2 participants