- 
                Notifications
    You must be signed in to change notification settings 
- Fork 715
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
While I try to extract the test project for garnet from Aspire.Hosting.Tests to the new test project Aspire.Hosting.Garnet.Tests according to #4294, running Garnet Container using WithPersistence failed.
Expected Behavior
The container starts without any errors.
Steps To Reproduce
Just add GarnetResource using WithPersistence
var builder = DistributedApplication.CreateBuilder(args);
var garnet = builder.AddGarnet("garnet")
    .WithPersistence();
builder.Build().Run();
Exceptions (if any)
No response
.NET Version info
.NET SDK:
Version:           8.0.303
Commit:            29ab8e3268
Workload version:  8.0.300-manifests.280f8661
MSBuild version:   17.10.4+10fbfbf2e
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19045
OS Platform: Windows
RID:         win-x64
Base Path:   C:\Program Files\dotnet\sdk\8.0.303\
.NET workloads installed:
[android]
Installation Source: SDK 8.0.300, VS 17.10.34916.146
Manifest Version:    34.0.95/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.95\WorkloadManifest.json
Install Type:        FileBased
[aspire]
Installation Source: SDK 8.0.300, VS 17.10.34916.146
Manifest Version:    8.0.1/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.0.1\WorkloadManifest.json
Install Type:        FileBased
[ios]
Installation Source: SDK 8.0.300, VS 17.10.34916.146
Manifest Version:    17.2.8053/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.2.8053\WorkloadManifest.json
Install Type:        FileBased
[maccatalyst]
Installation Source: SDK 8.0.300, VS 17.10.34916.146
Manifest Version:    17.2.8053/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.2.8053\WorkloadManifest.json
Install Type:        FileBased
[maui-windows]
Installation Source: SDK 8.0.300, VS 17.10.34916.146
Manifest Version:    8.0.21/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.21\WorkloadManifest.json
Install Type:        FileBased
Host:
Version:      8.0.7
Architecture: x64
Commit:       2aade6beb0
.NET SDKs installed:
8.0.300 [C:\Program Files\dotnet\sdk]
8.0.303 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.30 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86   [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Anything else?
Container Logs:
GarnetServer
Copyright (c) Microsoft Corporation
ERROR(S):
Option 'save' is unknown.
Encountered error(s) while parsing command line arguments.
For detailed usage information run with --help.
09::55::17 info: ArgParser[0] Configuration import from embedded resource succeeded. Path: defaults.conf.
Unable to initialize server due to exception: Encountered an error when initializing Garnet server. Please see log messages above for more details.