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

quote project parameters in dotnet module #2053

Merged
merged 1 commit into from
Aug 5, 2018

Conversation

kblohm
Copy link
Contributor

@kblohm kblohm commented Aug 4, 2018

fixes #2052

@matthid
Copy link
Member

matthid commented Aug 4, 2018

I'm not sure if quoteIfNeeded is correct. It looks broken to me. Should we fix that here or use one of the new apis?

@kblohm
Copy link
Contributor Author

kblohm commented Aug 4, 2018

That is the one used in the MsBuild-Module (and probably all over the place). Where can i find a version that is not broken?

@matthid
Copy link
Member

matthid commented Aug 4, 2018

https://github.com/fsharp/FAKE/blob/release/next/src/app/Fake.Core.Process/CmdLineParsing.fs are the new apis for escaping arguments they conform to the spec. We always use the "windows" escaping (even on linux) as that's what they have implemented in netcore.

@matthid
Copy link
Member

matthid commented Aug 4, 2018

Also I'm not even sure why quoteIfNeeded actually exists, why not just always escape properly?

@kblohm
Copy link
Contributor Author

kblohm commented Aug 4, 2018

I have no idea. Maybe unescaped arguments look better? ;)

@matthid
Copy link
Member

matthid commented Aug 4, 2018

I guess it's historic because we never had proper escaping and unquoted worked cross platform

@matthid
Copy link
Member

matthid commented Aug 4, 2018

Additionally, if we decide there is an advantage of not using quotes (and proper escaping) we should add it to the new API which will make them nicer everywhere :)

@matthid
Copy link
Member

matthid commented Aug 4, 2018

Or leave it like this I think I'll just update quote and quoteIfNeeded and see what happens on next release

@kblohm
Copy link
Contributor Author

kblohm commented Aug 4, 2018

Update it to delegate to the new API?

@matthid
Copy link
Member

matthid commented Aug 5, 2018

109ec13

@matthid
Copy link
Member

matthid commented Aug 5, 2018

Thanks!

@matthid matthid merged commit 8d9746a into fsprojects:release/next Aug 5, 2018
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.

DotNet Module does not quote project parameter
2 participants