Skip to content

Commit d128b27

Browse files
author
Adam Ratzman
committed
test to see if CI azure service bus somehow needs the double dash
1 parent ff77d7e commit d128b27

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/Aspire.Hosting/Dcp/DcpExecutor.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ private async Task CreateExecutableAsync(AppResource er, ILogger resourceLogger,
10231023
// We still want to display the args in the dashboard so only add them to the custom arg annotations.
10241024
var annotationOnly = spec.ExecutionType == ExecutionType.IDE;
10251025

1026-
var launchProfileArgs = GetLaunchProfileArgs(project.GetEffectiveLaunchProfile()?.LaunchProfile, appHostArgs.Count > 0);
1026+
var launchProfileArgs = GetLaunchProfileArgs(project.GetEffectiveLaunchProfile()?.LaunchProfile/*, appHostArgs.Count > 0*/);
10271027
launchArgs.AddRange(launchProfileArgs.Select(a => (a, isSensitive: false, annotationOnly)));
10281028
}
10291029
}
@@ -1034,7 +1034,7 @@ private async Task CreateExecutableAsync(AppResource er, ILogger resourceLogger,
10341034
return launchArgs;
10351035
}
10361036

1037-
private static List<string> GetLaunchProfileArgs(LaunchProfile? launchProfile, bool containsAppHostArgs)
1037+
private static List<string> GetLaunchProfileArgs(LaunchProfile? launchProfile/*, bool containsAppHostArgs*/)
10381038
{
10391039
var args = new List<string>();
10401040
if (launchProfile is not null && !string.IsNullOrWhiteSpace(launchProfile.CommandLineArgs))
@@ -1043,11 +1043,10 @@ private static List<string> GetLaunchProfileArgs(LaunchProfile? launchProfile, b
10431043
if (cmdArgs.Count > 0)
10441044
{
10451045
// If there are no app host args, we don't need a redundant --
1046-
if (containsAppHostArgs)
1047-
{
1046+
//if (containsAppHostArgs)
1047+
//{
10481048
args.Add("--");
1049-
}
1050-
1049+
//}
10511050
args.AddRange(cmdArgs);
10521051
}
10531052
}

0 commit comments

Comments
 (0)