You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
WithDaprSidecar doesn't mimic WaitFor on its parent resource #1073
I am facing the same issue. Latest version of everything, .net 10, MacOS.
The hacky way I was able to use to get it to work the way I expected: drop the WithDaprSidecar call and instead write an executable that prefaces the dapr command with a sleep.
varapi=builder.AddProject<Projects.PropertyManager_Api>("api").WithReference(db).WithReference(rabbitMq).WaitFor(postgres).WaitFor(rabbitMq);builder.AddExecutable("api-dapr-sidecar","bash",args:["-c","sleep 30 && dapr run --app-id api --app-port 5225 --dapr-http-port 3500 --dapr-grpc-port 3501 --resources-path ../components/ --config ../components/dapr-config.yaml --log-level debug"],workingDirectory:".").WaitFor(api);
Activity
kristremblay commentedon Dec 29, 2025
I am facing the same issue. Latest version of everything, .net 10, MacOS.
The hacky way I was able to use to get it to work the way I expected: drop the
WithDaprSidecarcall and instead write an executable that prefaces the dapr command with a sleep.