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

Update Trace dos with OSX instructions #9284

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

dellis1972
Copy link
Contributor

No description provided.

@dellis1972 dellis1972 requested a review from jonpryor as a code owner September 4, 2024 18:19
@dellis1972 dellis1972 requested review from jonathanpeppers and removed request for jonpryor September 4, 2024 18:19

```dotnetcli
dotnet restore foo.csproj
dotnet trace collect --format speedscope -- dotnet build "-t:Run" -bl --no-restore foo.csproj -p:UseSharedCompilation=false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the -p:UseSharedCompilation=false works, do we not need the quotes around "-t:Run" anymore? Maybe that was a bug fixed at some point?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quotes for -t:Run never should have been needed. You'd need quotes if you wanted to specify multiple ;-separated targets, e.g. "-t:Restore;Run".

Now, it might be handy to have quotes anyway to make editing the command-line easier…. but as-is, the quotes here are not needed, and never were.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…but then there's the subsequent paragraph, doh:

found that " is necessary when : characters are present in the command. This appears to be some kind of argument parsing issue with dotnet trace.

So maybe the double-quotes are needed.

@jonpryor jonpryor merged commit 1977365 into main Sep 10, 2024
53 of 58 checks passed
@jonpryor jonpryor deleted the dellis1972-update-trace-docs branch September 10, 2024 16:39
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants