Skip to content

Commit

Permalink
Merge pull request #2601 from unoplatform/mergify/bp/release/stable/5…
Browse files Browse the repository at this point in the history
….1/pr-2599

fix: Provide only the arguments to the default ApplicationBuilder (backport #2599)
  • Loading branch information
jeromelaban authored Oct 31, 2024
2 parents f5bf97b + a1665a8 commit 3109e53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Uno.Extensions.Hosting.UI/ApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ internal record ApplicationBuilder(Application App, LaunchActivatedEventArgs Arg

public IHost Build()
{
var builder = UnoHost.CreateDefaultBuilder(ApplicationAssembly, Environment.GetCommandLineArgs());
var builder = UnoHost.CreateDefaultBuilder(
ApplicationAssembly,
// Skip the first argument which contains the executable path that causes
// issues in the CommandLine parser.
Environment.GetCommandLineArgs().Skip(1).ToArray());
foreach (var del in _delegates)
{
del(builder);
Expand Down

0 comments on commit 3109e53

Please sign in to comment.