Environment:
- Dapr version: [specify version]
- .NET version: 8.0
- Operating system: Windows 10 Enterprise 21H2
- Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.9.0 Preview 2.0
Description:
Encountered an issue where setting EnableApiLogging to true in a .NET 8.0 C# application causes the Dapr sidecar to fail to start. The application uses the following configuration:
builder.AddProject<Projects.AspireAppPoc_Web>("webfrontend")
.WithDaprSidecar(new DaprSidecarOptions
{
AppId = "web",
EnableApiLogging = true
})
.WithReference(pubSub);
Issue:
When EnableApiLogging is set to true, the generated command for starting the Dapr sidecar incorrectly appends True to the --enable-api-logging flag, resulting in a command like:
```cmd
C:\dapr\dapr.exe run --app-id web --enable-api-logging True --resour....
This causes the sidecar to fail to start with the following error:
Starting Dapr with id web. HTTP Port: 60415. gRPC Port: 60414
Start App failed, try to stop Dapr successfully
exec: "True": executable file not found in %!P(MISSING)ATH%!(NOVERB)
Expected Behavior:
The sidecar should start correctly with API logging enabled, without appending True to the --enable-api-logging flag.
Environment:
Description:
Encountered an issue where setting
EnableApiLoggingtotruein a .NET 8.0 C# application causes the Dapr sidecar to fail to start. The application uses the following configuration:This causes the sidecar to fail to start with the following error:
Expected Behavior:
The sidecar should start correctly with API logging enabled, without appending True to the --enable-api-logging flag.