Dapr app-port paremeter not being passed

Aperta
#2,420 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
devops

Direzione di ricerca

Start by tracing how WithDaprSidecar builds the dapr.exe run arguments for the project and compare them with the reported command, which omits --app-port. Reproduce with the provided AddDaprStateStore setup and check the sidecar argument tests, if present. Done when the generated command includes the app port and Dapr Actors can call an Actor method.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

The app-port parameter is not being passed to the dapr.exe. This cause Dapr Actors not to work when calling an Actor method.

Image
[sys] Starting process...: Cmd = C:\dapr\dapr.exe, Args = ["run", "--app-id", "Service", "--resources-path", "xxx", "--dapr-grpc-port", "22422", "--dapr-http-port", "22421", "--metrics-port", "22420"]
Regression

No response

Steps to reproduce
builder.AddDapr();
var daprStateStore = builder.AddDaprStateStore("state").WithMetadata("actorStateStore", "true");

builder.AddProject<Project>("Service")
    .WithDaprSidecar(sidecar => sidecar.WithReference(daprStateStore));
Expected behavior

The --app-port parameter is passed.

Screenshots

No response

IDE and version

Other

IDE version

VS 2026

Nuget packages
<Project Sdk="Aspire.AppHost.Sdk/13.6.4">
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Dapr" Version="13.6.1-preview.1.261026-0455" />
Additional context

No response

Help us help you

No, just wanted to report this

Lingua principale
C#
Stelle
632
Fork
204
Merge medio
2g 13h
PR unite (30g)
92

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommunityToolkit/Aspire

Tutte le issue di CommunityToolkit/Aspire

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.