Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statements to generate a .NET Aspire manifest do not work. #348

Closed
christiannagel opened this issue Feb 4, 2024 · 2 comments · Fixed by #349
Closed

Statements to generate a .NET Aspire manifest do not work. #348

christiannagel opened this issue Feb 4, 2024 · 2 comments · Fixed by #349
Assignees
Labels
deployment Content related to deployment. doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-aspire/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@christiannagel
Copy link

christiannagel commented Feb 4, 2024

Type of issue

Code doesn't work

Description

The first step on generating a manifest should use the option -o instead of -n.

Instead of this:

dotnet new aspire-starter --use-redis-cache `
    -n AspireApp && `
    cd AspireApp

This should be used:

dotnet new aspire-starter --use-redis-cache `
    -o AspireApp && `
    cd AspireApp

The option -n uses the name and creates multiple directories. for every project. The option -o creates a new folder. The next statement cd AspireApp doesn't work in the first version.

The next step uses dotnet build instead of dotnet run.

Instead of this:

dotnet build --project AspireApp.AppHost\AspireApp.AppHost.csproj `
    -- `
    --publisher manifest `
    --output-path aspire-manifest.json

This should be used:

dotnet run --project AspireApp.AppHost\AspireApp.AppHost.csproj `
    -- `
    --publisher manifest `
    --output-path aspire-manifest.json

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/deployment/manifest-format

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/deployment/manifest-format.md

Document Version Independent Id

22b9550d-dc9b-0b07-2193-b3a8fa4fca64

Article author

@IEvangelist


Associated WorkItem - 209072

@IEvangelist
Copy link
Member

Hey @mitchdenny - did this change in preview-2? I recall testing the article when you originally authored it.

@mitchdenny
Copy link
Member

Thanks for reporting. We'll get this fixed up

@IEvangelist IEvangelist added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Feb 7, 2024
@IEvangelist IEvangelist self-assigned this Feb 7, 2024
@IEvangelist IEvangelist added Pri1 High priority, do before Pri2 and Pri3 doc-bug Problem with the content; needs to be fixed [org][type][category] deployment Content related to deployment. labels Feb 7, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Feb 7, 2024
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Content related to deployment. doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-aspire/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants