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

Compiler command line parsing doesn't handle spaces #135

Closed
jaredpar opened this issue Jun 6, 2024 · 0 comments
Closed

Compiler command line parsing doesn't handle spaces #135

jaredpar opened this issue Jun 6, 2024 · 0 comments

Comments

@jaredpar
Copy link
Owner

jaredpar commented Jun 6, 2024

Consider the following command line in a binlog file

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- ...

This is a combination of both an application an the command line. The API CommandLineParser.SplitCommandLineIntoArguments is really only meant to handle command lines. When it sees the application it's chunking it into arguments incorrectly. This is working with dotnet build just fine due to the nature of how it quotes arguments.

Going to need to rework this to hand parse out the application before splitting into the command line.

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

No branches or pull requests

1 participant