Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@github-actions
Copy link
Contributor

Backport of #50926 to main

/cc @nohwnd

@Youssef1313
Copy link
Member

I don't think this needs to be manually ported to main. This should flow from release/10.0.1xx automatically to release/10.0.2xx (example PR: #51262), then from release/10.0.2xx to main.

@nohwnd
Copy link
Member

nohwnd commented Oct 15, 2025

I thought that as well, but it was merged 3 weeks and still is not in main. The flow started only 7 hours ago. More people are hitting this now, so probably merging it directly won't hurt.

@Youssef1313
Copy link
Member

but it was merged 3 weeks and still is not in main

Yeah the release branch merges to main were red for long. In fact, they are still red. #51207

@baronfel Fine to merge the manual backport here or should we wait until the automatic merge PR is unblocked?

if (arg.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) || arg.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
{
var previousArg = i > 0 ? args[i - 1] : null;
if (previousArg != null && CommonOptions.PropertiesOption.Aliases.Contains(previousArg))
Copy link
Member

Choose a reason for hiding this comment

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

This approach will probably not work for #51249 as the dll isn't provided in -p. We probably need to get a proper fix soon and get approval for getting a fix for GA?

@baronfel
Copy link
Member

Merging directly never hurts, especially to main where there's no immediately GA risk. Feel free to merge this as soon as you review it to your satisfaction!

foreach (string arg in args)
for (int i = 0; i < args.Length; i++)
{
if (!arg.StartsWith("-") &&
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't have removed this StartsWith check. This is likely the cause of #51249.

Copy link
Member

Choose a reason for hiding this comment

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

the whole parsing changes, so if -dl is not split the same way -p is then the argument is no longer one string "-p:something.dll"

but instead it is

"-p", "something.dll"
essentially there is additioanl split on :, but maybe that parser is only applicable to property, I think I pointed to it in the issue. Will have to look , and add test for it.

Copy link
Member

Choose a reason for hiding this comment

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

ignore me, I am tired :D

@SimonZhao888
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SimonZhao888
Copy link
Member

Same issue as #51284

@Youssef1313 Youssef1313 closed this Nov 4, 2025
@Youssef1313 Youssef1313 deleted the backport/pr-50926-to-main branch November 4, 2025 04:04
@Youssef1313
Copy link
Member

Fixes flowed to main

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.

6 participants