-
Notifications
You must be signed in to change notification settings - Fork 4
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
Proc.Start Arguments breaking change since 0.6.x upgrade to 0.8.x #15
Comments
Yes. the problem exists for arguments passed in as a single string. |
Sorry to hear! I tried reproducing this to no avail here: #17 Can you share how you are invoking For netstandard2.1 we don't do any argument mutations and simply pass the arg string array to: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.argumentlist?view=net-8.0&viewFallbackFrom=netframework-4.8.1 For netstandard2.0 we don't split by spaces |
* Attempt to reproduce #15, handling of quoted strings * move back to just testing net8.0
We tried latest release and had to rollback again as it is still broken for us :-/ |
Why do you need any string manipulation, that seems like not very good approach do something differently base on version? |
I'll comment tomorrow on the why @kachalkov :) Can you share your target framework with me? |
4.8 |
Released 0.9.1 which reverses the behavior back. The problem on Full Framework (<4.8.1) and Net Standard 2.0 is that https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.argumentlist is not available. Arguments can only be passed as a single string. So I might attempt to fix this again in a later version but right now reverted it because I have limited time at the moment and wanted to unblock folks. Let me know if |
Our devs have tried latest version and it seems has breaking changes for
Start method, any chance to keep old one and mark as obsolete?
…On Wed, 4 Dec 2024, 01:46 Martijn Laarman, ***@***.***> wrote:
Released 0.9.1 which reverses the behavior back.
The problem on Full Framework (<4.8.1) and Net Standard 2.0 is that
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.argumentlist
is not available.
Arguments can only be passed as a single string.
So ["hello world", "good", "day"] using a simple string join would result
in 4 arguments to the process which is wrong. So the routine we had
naively quoted the first argument.
I might attempt to fix this again in a later version but right now
reverted it because I have limited time at the moment and wanted to unblock
folks.
Let me know if 0.9.1 works again 🙏
—
Reply to this email directly, view it on GitHub
<#15 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHJ2QYKBUI5BP26LEZVX2L2DW725AVCNFSM6AAAAABJFT5A3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJUG43TGNZWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The changed version works Ok for our use. A little hiccup was to change the method parameters. Thanks! |
hi, we have upgraded to latest version and none of the arguments are being passed in fully due to the code which tries to split by space and add to the list.
we are using bcp process to start and pass args....
The text was updated successfully, but these errors were encountered: